[Collab-qa-commits] r1442 - ddpo-by-mail

Raphael Geissert atomo64-guest at alioth.debian.org
Sun Apr 26 05:38:24 UTC 2009


Author: atomo64-guest
Date: 2009-04-26 05:38:24 +0000 (Sun, 26 Apr 2009)
New Revision: 1442

Modified:
   ddpo-by-mail/bugs.rb
   ddpo-by-mail/reminder-mail.rb
Log:
Don't use a separate hash for bug titles


Modified: ddpo-by-mail/bugs.rb
===================================================================
--- ddpo-by-mail/bugs.rb	2009-04-26 04:38:05 UTC (rev 1441)
+++ ddpo-by-mail/bugs.rb	2009-04-26 05:38:24 UTC (rev 1442)
@@ -3,7 +3,6 @@
 def parse_bugs
   # parse buglist
   bugs = {}
-  bugtitles = {}
   maxtime = Time::now.to_i - BUG_AGE * 86400
 
   bugid = nil
@@ -61,13 +60,12 @@
 
       next if reason.nil?
 
-      bugtitles[bugid] = bugtitle
       if obugsrcpkg.nil?
         obugsrcpkg = obugpkg
       end
       
       bugs[obugsrcpkg] = [] if bugs[obugsrcpkg].nil?
-      bugs[obugsrcpkg] << [ bugid, serious, reason ]
+      bugs[obugsrcpkg] << [ bugid, serious, reason, bugtitle ]
 
     elsif key == 'debbugsID:'
       bugid = val.to_i
@@ -95,19 +93,15 @@
       bugrttags << val
     end
   end
-  return bugs, bugtitles
+  return bugs
 end
 
 if $0 == __FILE__
-  bugs, bugtitles = parse_bugs
+  bugs = parse_bugs
   bugs.each_pair do |k,v|
     puts "#{k}:"
     v.each do |b|
       puts " - " + b.join(' ')
     end
   end
-
-  bugtitles.each_pair do |k,v|
-    puts "#{k} #{v}"
-  end
 end

Modified: ddpo-by-mail/reminder-mail.rb
===================================================================
--- ddpo-by-mail/reminder-mail.rb	2009-04-26 04:38:05 UTC (rev 1441)
+++ ddpo-by-mail/reminder-mail.rb	2009-04-26 05:38:24 UTC (rev 1442)
@@ -95,7 +95,7 @@
   lintian[pkg] = [errors.to_i, warnings.to_i]
 end
 
-bugs, bugtitles = parse_bugs
+bugs = parse_bugs
 testingissues = testing_issues(dipkgs)
 dehs = get_dehs
 
@@ -231,7 +231,7 @@
         text[pkg][T_BUGS] = "= #{bugs.length} bug(s) that should be fixed for the next Debian release:\n"
         bugs.each do |b|
           text[pkg][T_BUGS] += "- ##{b[0]} <http://bugs.debian.org/#{b[0]}>\n"
-          text[pkg][T_BUGS] += "  #{bugtitles[b[0]]}\n"
+          text[pkg][T_BUGS] += "  #{b[3]}\n"
           if b[2] == "RC"
 	    # add nothing
           elsif b[2] == "PROP"




More information about the Collab-qa-commits mailing list