blob: 68090082ce818d42ec815b863606cbef261eca1d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
|