[Collab-qa-commits] r917 - bapase/rm_pkgs

atomo64-guest at alioth.debian.org atomo64-guest at alioth.debian.org
Mon Jul 14 01:40:13 UTC 2008


Author: atomo64-guest
Date: 2008-07-14 01:40:12 +0000 (Mon, 14 Jul 2008)
New Revision: 917

Modified:
   bapase/rm_pkgs/mass-reassign
Log:
Only reassign bugs from a given binary package, not from a source package.
Display a big fat warning.


Modified: bapase/rm_pkgs/mass-reassign
===================================================================
--- bapase/rm_pkgs/mass-reassign	2008-07-12 17:32:38 UTC (rev 916)
+++ bapase/rm_pkgs/mass-reassign	2008-07-14 01:40:12 UTC (rev 917)
@@ -1,11 +1,17 @@
 #!/usr/bin/ruby -w
 
 if ARGV.length != 2
-  puts "Usage: mass-reassign sourcepackage dstpackage"
+  puts "Usage: mass-reassign package dstpackage"
   puts "please set the RMFROM and RMSIG env variables (try with $. config-generic)"
   exit(1)
 end
 
+puts "NOTES:"
+puts "* This script can be extremely intrusive if not used properly."
+puts "* You should consider contacting the maintainer(s) before using it."
+puts "-- Press enter to continue --"
+STDIN.readline
+
 require 'pp'
 require 'soap/rpc/driver'
 bts = SOAP::RPC::Driver::new('http://bugs.debian.org/cgi-bin/soap.cgi', '/Debbugs/SOAP')
@@ -20,7 +26,7 @@
 SENDMAIL=true
 
 puts "------bugs for #{PKG}-----"
-bugs = bts.get_bugs(['src', PKG])
+bugs = bts.get_bugs(['package', PKG])
 status = bts.get_status(bugs)
 bugs = []
 status.each_pair do |k, v|




More information about the Collab-qa-commits mailing list