diff options
author | Raphael Geissert <geissert@debian.org> | 2009-08-08 17:26:46 +0000 |
---|---|---|
committer | Raphael Geissert <geissert@debian.org> | 2009-08-08 17:26:46 +0000 |
commit | b28b4a2874b0a73c88b82d7fdfcbd08c9e025bad (patch) | |
tree | 7f2dfb7a5ec49b1229c0932822cbf3aa95fee485 /bin/get-bug-status | |
parent | a8ad78c0b13f7002e0403d92ead9ba5e51cd0fc7 (diff) |
Add a 'fixed-only' mode to get-bug-status so that it can be used for
general maintenance pourposes
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@12517 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/get-bug-status')
-rwxr-xr-x | bin/get-bug-status | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/get-bug-status b/bin/get-bug-status index f2ceb08e0b..707f99dffb 100755 --- a/bin/get-bug-status +++ b/bin/get-bug-status @@ -5,6 +5,7 @@ require 'soap/rpc/driver' # 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 @@ tags = response[bug].tags.to_s 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 fix == nil or fix == "" then if tags =~ /pending/ print ", pending" end + puts else - puts "TODO: mark as fixed in " + fix + puts "TODO: mark #{bug} as fixed in " + fix end |