From 7bf3491a9fa16a615b0eba3802928c14ee0cef3a Mon Sep 17 00:00:00 2001 From: Nico Golde Date: Thu, 20 Sep 2007 18:14:54 +0000 Subject: 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 --- bin/get-bug-status | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 bin/get-bug-status (limited to 'bin/get-bug-status') 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 +# 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 + -- cgit v1.2.3