summaryrefslogtreecommitdiffstats
path: root/bin/get-bug-status
diff options
context:
space:
mode:
authorNico Golde <nion@debian.org>2007-09-20 18:14:54 +0000
committerNico Golde <nion@debian.org>2007-09-20 18:14:54 +0000
commit7a4167bf9cecb5c7ef9db15ae9c7fd465f3b7d2d (patch)
tree2400a2ea1d0edb1d52996a08c672b09e63b504a4 /bin/get-bug-status
parent4b3143947020cd935a530a5a67e422f69a391476 (diff)
get-todo-items returns cve, package name, bug and bug status for a given unfixed issue, get-bug-status is used to get the status via soap
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@6654 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/get-bug-status')
-rwxr-xr-xbin/get-bug-status29
1 files changed, 29 insertions, 0 deletions
diff --git a/bin/get-bug-status b/bin/get-bug-status
new file mode 100755
index 0000000000..68090082ce
--- /dev/null
+++ b/bin/get-bug-status
@@ -0,0 +1,29 @@
+#!/usr/bin/ruby
+require 'soap/rpc/driver'
+# Nico Golde <nion@debian.org>
+# Latest change: Do Sep 20 20:13:27 CEST 2007
+# return fixed version or TODO: fix for given bug
+
+bug = ARGV[0].to_i
+host = "bugs.debian.org"
+port = 80
+server="http://#{host}:#{port}/cgi-bin/soap.cgi"
+ns = 'Debbugs/SOAP/'
+drv = SOAP::RPC::Driver.new(server, ns)
+drv.add_method('get_status','bugnumber')
+
+response = drv.get_status(bug)
+
+if response[bug] == nil then
+ puts "bug not found"
+ exit
+end
+
+fix = response[bug].fixed_versions[0].to_s
+
+if fix == nil or fix == "" then
+ puts "TODO: fix"
+else
+ puts "TODO: mark as fixed in " + fix
+end
+

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