File: sb.rb

package info (click to toggle)
collab-qa-tools 0.2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 16,668 kB
  • ctags: 247
  • sloc: ruby: 3,432; makefile: 2
file content (15 lines) | stat: -rwxr-xr-x 520 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/ruby -w
# Show bugs

pkg = ARGV[0]
if pkg =~ /_/
  pkg = pkg.gsub(/_.*/, '')
end
url = "http://bugs.debian.org/src:#{pkg}"
#cgi-bin/pkgreport.cgi?pkg=#{pkg}&archive=no&repeatmerged=no&version=&dist=unstable&pend-inc=pending&pend-inc=forwarded&pend-inc=pending-fixed&pend-inc=fixed&pend-inc=done&sev-inc=critical&sev-inc=grave&sev-inc=serious&sev-inc=important"
cmd = "epiphany-browser \"#{url}\" &"
puts cmd
system(cmd)
cmd = "epiphany-browser \"http://packages.qa.debian.org/#{pkg}\" &"
puts cmd
system(cmd)