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
commit736f2648fa66931c0ada844923ed3fdec5468913 (patch)
tree3c67ab18393516dd3fa25b2425aaacd59e0d9fd6 /bin/get-bug-status
parent75e66afd56900b97ac432f9fd6ec4916a737c2d4 (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