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 | a795397afc8455617932ef00dfbf02fbb41b6b3e (patch) | |
tree | f523d1eafd807f15cb8ad24de2b493eeb52b2f9a /bin/get-bug-status | |
parent | 1964898ace8b5ee6365555ba3399c9e31bfddca3 (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 |