Author: geissert Date: 2009-08-08 17:26:46 +0000 (Sat, 08 Aug 2009) New Revision: 12517 Modified: bin/get-bug-status Log: Add a ''fixed-only'' mode to get-bug-status so that it can be used for general maintenance pourposes Modified: bin/get-bug-status ==================================================================--- bin/get-bug-status 2009-08-08 16:20:05 UTC (rev 12516) +++ bin/get-bug-status 2009-08-08 17:26:46 UTC (rev 12517) @@ -5,6 +5,7 @@ # return fixed version or TODO: fix for given bug bug = ARGV[0].to_i +fixed_only = (ARGV[1].to_s == ''fixed'') host = "bugs.debian.org" port = 80 server="http://#{host}:#{port}/cgi-bin/soap.cgi" @@ -24,6 +25,7 @@ severity = response[bug].severity.to_s if fix == nil or fix == "" then + exit if fixed_only print "TODO: fix (" + severity + ")" if tags =~ /patch/ print ", patch available" @@ -31,7 +33,8 @@ if tags =~ /pending/ print ", pending" end + puts else - puts "TODO: mark as fixed in " + fix + puts "TODO: mark #{bug} as fixed in " + fix end