summaryrefslogtreecommitdiffstats
path: root/bin/get-bug-status
diff options
context:
space:
mode:
authorRaphael Geissert <geissert@debian.org>2009-08-08 17:26:46 +0000
committerRaphael Geissert <geissert@debian.org>2009-08-08 17:26:46 +0000
commita795397afc8455617932ef00dfbf02fbb41b6b3e (patch)
treef523d1eafd807f15cb8ad24de2b493eeb52b2f9a /bin/get-bug-status
parent1964898ace8b5ee6365555ba3399c9e31bfddca3 (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-xbin/get-bug-status5
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

© 2014-2024 Faster IT GmbH | imprint | privacy policy