Author: lucas
Date: 2008-04-13 17:45:37 +0000 (Sun, 13 Apr 2008)
New Revision: 779

Modified:
   orphan-list/list-orphaned.rb
Log:
adjustements to list-orphaned. thanks to Atomo64 for noticing the problem

Modified: orphan-list/list-orphaned.rb
===================================================================
--- orphan-list/list-orphaned.rb        2008-04-11 12:14:51 UTC (rev 778)
+++ orphan-list/list-orphaned.rb        2008-04-13 17:45:37 UTC (rev 779)
@@ -1,6 +1,7 @@
 #!/usr/bin/ruby -w
 
 bugid = nil
+bugstate = nil
 bugpkg = nil
 bugseverity = nil
 bugtitle = nil
@@ -40,11 +41,11 @@
     else
       bugmerged = false
     end
-    next if bugpkg != 'wnpp'
-    next if !bugaffect.include?('unstable')
+    next if !bugpkg.split(/,/).include?('wnpp')
+    next if bugstate == 'done'
     # Analyze bug.
-    if bugtitle =~ /^(ITA|ITP|O|RFA|RFP|RFH): ([^\s]*) -- (.*)$/
-      next if not ['ITA', 'O'].include?($1)
+    if bugtitle =~ /^(ITA|ITP|O|RFA|RFP|RFH): ([^\s]*) [-]+ (.*)$/
+      next if not ['RFA', 'ITA', 'O'].include?($1)
       type = $1
       pkg = $2
       bugdate = getdate(bugid, bugdate)
@@ -61,6 +62,8 @@
 
   elsif key == 'debbugsID:'
     bugid = val
+  elsif key == 'debbugsState:'
+    bugstate = val
   elsif key == 'debbugsPackage:'
     bugpkg = val
   elsif key == 'debbugsSeverity:'


_______________________________________________
Collab-qa-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/collab-qa-commits

Reply via email to