/[secure-testing]/bin/get-bug-status
ViewVC logotype

Contents of /bin/get-bug-status

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7294 - (show annotations) (download)
Tue Nov 13 15:37:14 2007 UTC (5 years, 6 months ago) by nion
File size: 839 byte(s)
add bug severity to output
1 #!/usr/bin/ruby
2 require 'soap/rpc/driver'
3 # Nico Golde <nion@debian.org>
4 # Latest change: Di Nov 13 16:37:13 CET 2007
5 # return fixed version or TODO: fix for given bug
6
7 bug = ARGV[0].to_i
8 host = "bugs.debian.org"
9 port = 80
10 server="http://#{host}:#{port}/cgi-bin/soap.cgi"
11 ns = 'Debbugs/SOAP/'
12 drv = SOAP::RPC::Driver.new(server, ns)
13 drv.add_method('get_status','bugnumber')
14
15 response = drv.get_status(bug)
16
17 if response[bug] == nil then
18 puts "bug not found"
19 exit
20 end
21
22 fix = response[bug].fixed_versions[0].to_s
23 tags = response[bug].tags.to_s
24 severity = response[bug].severity.to_s
25
26 if fix == nil or fix == "" then
27 print "TODO: fix (" + severity + ")"
28 if tags =~ /patch/
29 print ", patch available"
30 end
31 if tags =~ /pending/
32 print ", pending"
33 end
34 else
35 puts "TODO: mark as fixed in " + fix
36 end
37

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5