blob: 33afbb9d3cfc3b331dc0cf825c0938bc8a4db742 (
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
30
31
32
33
34
|
#!/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
tags = response[bug].tags.to_s
if fix == nil or fix == "" then
if tags =~ /patch/
puts "TODO: fix, patch available"
else
puts "TODO: fix"
end
else
puts "TODO: mark as fixed in " + fix
end
|