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

gothicx-guest at alioth.debian.org gothicx-guest at alioth.debian.org
Sun Mar 22 00:05:33 UTC 2009


Author: gothicx-guest
Date: 2009-03-22 00:05:28 +0000 (Sun, 22 Mar 2009)
New Revision: 1417

Added:
   bapase/rm_pkgs/get-removals.sh
   bapase/rm_pkgs/mass-close-bin
   bapase/rm_pkgs/mass-close-pkg
   bapase/rm_pkgs/mass-reassign
Removed:
   bapase/rm_pkgs/mass-close
   bapase/rm_pkgs/mass-reassign
Modified:
   bapase/rm_pkgs/README
Log:
Add mass-close script for binary packages; Re-work README and get-removals to get only the full edition

Modified: bapase/rm_pkgs/README
===================================================================
--- bapase/rm_pkgs/README	2009-03-19 17:43:06 UTC (rev 1416)
+++ bapase/rm_pkgs/README	2009-03-22 00:05:28 UTC (rev 1417)
@@ -22,32 +22,31 @@
   might have to be reassigned to another kernel package.
   Another case is bugs that were filed against a misspelled package (e.g dkpg).
   Those should of course be reassigned.
-- or find the removal in removals*txt, find the removal bug, read the removal
+- or find the removal in removals-full.txt, find the removal bug, read the removal
   bug
 
-If the bugs should be closed, the mass-close script (in .....bapase/rm_pkgs/)
+If the bugs should be closed, the mass-close-pkg script (in .....bapase/rm_pkgs/)
 can help. This script fetches all the open bugs for a given package, then opens
 an editor so you can edit the mail that will be sent to close the bugs. Then,
 the mail is sent to each bug (one mail per bug).
 
-in bapase/rm_pkgs, there's also get-removals.txt, to fetch all the lists of
-removals from ftp-master.
+in bapase/rm_pkgs, there's also get-removals.sh, to fetch all the removals from ftp-master.
 
 Example:
-tkirc was removed from testing and unstable in 2005. Its removal bug is #328601. Grepping removals*txt reveals:
-removals-2005.txt-[Date: Wed, 12 Oct 2005 15:05:14 -0700] [ftpmaster: Joerg Jaspert]
-removals-2005.txt-Removed the following packages from unstable:
-removals-2005.txt-
-removals-2005.txt:     tkirc |    1.202-8 | source, all
-removals-2005.txt-Closed bugs: 328601
-removals-2005.txt-
-removals-2005.txt-------------------- Reason -------------------
-removals-2005.txt-RoQA; unused, out of date, alternatives available
-removals-2005.txt-----------------------------------------------
+tkirc was removed from testing and unstable in 2005. Its removal bug is #328601. Grepping removals-full.txt reveals:
+removals-full.txt-[Date: Wed, 12 Oct 2005 15:05:14 -0700] [ftpmaster: Joerg Jaspert]
+removals-full.txt-Removed the following packages from unstable:
+removals-full.txt-
+removals-full.txt:     tkirc |    1.202-8 | source, all
+removals-full.txt-Closed bugs: 328601
+removals-full.txt-
+removals-full.txt-------------------- Reason -------------------
+removals-full.txt-RoQA; unused, out of date, alternatives available
+removals-full.txt-----------------------------------------------
 
-So I run ./mass-close:
-collab-qa/bapase/rm_pkgs$ ./mass-close 
-Usage: mass-close sourcepackage last-version-in-debian removal-bugno
+So I run ./mass-close-pkg:
+collab-qa/bapase/rm_pkgs$ ./mass-close-pkg 
+Usage: mass-close-pkg sourcepackage last-version-in-debian removal-bugno
 +rm will be added automatically.
 please set the DEBFULLNAME and DEBEMAIL env variables
 
@@ -57,7 +56,7 @@
 
 collab-qa/bapase/rm_pkgs$ source config-lucas
 
-collab-qa/bapase/rm_pkgs$ ./mass-close tkirc 1.202-8 328601
+collab-qa/bapase/rm_pkgs$ ./mass-close-pkg tkirc 1.202-8 328601
 ------bugs for tkirc-----
 21906 tkirc normal forwarded tkirc: connect list is badly placed
 183012 tkirc wishlist pending Could use the irc alternative

Added: bapase/rm_pkgs/get-removals.sh
===================================================================
--- bapase/rm_pkgs/get-removals.sh	                        (rev 0)
+++ bapase/rm_pkgs/get-removals.sh	2009-03-22 00:05:28 UTC (rev 1417)
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+wget -c http://ftp-master.debian.org/removals-full.txt


Property changes on: bapase/rm_pkgs/get-removals.sh
___________________________________________________________________
Name: svn:executable
   + *

Deleted: bapase/rm_pkgs/mass-close
===================================================================
--- bapase/rm_pkgs/mass-close	2009-03-19 17:43:06 UTC (rev 1416)
+++ bapase/rm_pkgs/mass-close	2009-03-22 00:05:28 UTC (rev 1417)
@@ -1,78 +0,0 @@
-#!/usr/bin/ruby -w
-
-if ARGV.length != 3
-  puts "Usage: mass-close sourcepackage last-version-in-debian removal-bugno"
-  puts "+rm will be added automatically."
-  puts "please set the DEBFULLNAME and DEBEMAIL env variables (see e.g: config-lucas)"
-  exit(1)
-end
-
-require 'pp'
-require 'soap/rpc/driver'
-bts = SOAP::RPC::Driver::new('http://bugs.debian.org/cgi-bin/soap.cgi', '/Debbugs/SOAP')
-bts.add_method('get_status', 'bugs')
-bts.add_method('get_bugs', 'params')
-bts.add_method('get_bug_log', 'params')
-bts.add_method('get_usertag', 'email', 'tag')
-bts.add_method('newest_bugs', 'num')
-
-PKG=ARGV[0]
-VER=ARGV[1]
-RMBUG=ARGV[2]
-SENDMAIL=true
-
-puts "---- Bugs for #{PKG} ----"
-bugs = bts.get_bugs(['src', PKG])
-status = bts.get_status(bugs)
-bugs = []
-status.each_pair do |k, v|
-  next if v.done != ''
-  puts "#{k} #{v.package} #{v.severity} #{v.pending} #{v.subject}"
-  bugs << k
-end
-puts "-- Press enter to continue --"
-STDIN.readline
-tmp=`mktemp /tmp/email.#{PKG}.XXXXXX`.chomp
-f = File::new(tmp, "w")
-f.puts <<EOF
-From: #{ENV['DEBFULLNAME']} <#{ENV['DEBEMAIL']}>
-To: TMPL_BUGNO-done at bugs.debian.org
-Subject: #{PKG} has been removed from Debian, closing #TMPL_BUGNO
-
-Version: #{VER}+rm
-
-The #{PKG} package has been removed from Debian so we are closing
-the bugs that were still opened against it.
-
-For more information about this package's removal, read
-http://bugs.debian.org/#{RMBUG} . That bug might give the reasons why
-this package was removed, and suggestions of possible replacements.
-
-Don't hesitate to reply to this mail if you have any question.
-
-Thank you for your contribution to Debian.
-
-Kind regards,
---
-#{ENV['DEBFULLNAME']}
-EOF
-f.close
-ed=ENV['EDITOR']
-if ed.nil?
-  ed='sensible-editor'
-end
-system("#{ed} #{tmp}")
-s = IO::read(tmp)
-puts "-- press enter to send the mails --"
-STDIN.readline
-bugs.each do |b|
-  puts "Sending mail to close ##{b}"
-  if SENDMAIL
-    f = IO::popen("/usr/sbin/sendmail -t", "w")
-  else
-    f = File::new("email.#{PKG}.#{b}.txt", "w")
-  end
-  mail = s.gsub('TMPL_BUGNO', b.to_s)
-  f.puts mail
-  f.close
-end

Added: bapase/rm_pkgs/mass-close-bin
===================================================================
--- bapase/rm_pkgs/mass-close-bin	                        (rev 0)
+++ bapase/rm_pkgs/mass-close-bin	2009-03-22 00:05:28 UTC (rev 1417)
@@ -0,0 +1,77 @@
+#!/usr/bin/ruby -w
+
+if ARGV.length != 2
+  puts "Usage: mass-close-bin sourcepackage last-version-in-debian"
+  puts "+rm will be added automatically."
+  puts "please set the DEBFULLNAME and DEBEMAIL env variables (see e.g: config-lucas)"
+  exit(1)
+end
+
+require 'pp'
+require 'soap/rpc/driver'
+bts = SOAP::RPC::Driver::new('http://bugs.debian.org/cgi-bin/soap.cgi', '/Debbugs/SOAP')
+bts.add_method('get_status', 'bugs')
+bts.add_method('get_bugs', 'params')
+bts.add_method('get_bug_log', 'params')
+bts.add_method('get_usertag', 'email', 'tag')
+bts.add_method('newest_bugs', 'num')
+
+PKG=ARGV[0]
+VER=ARGV[1]
+SENDMAIL=true
+
+puts "---- Bugs for #{PKG} ----"
+bugs = bts.get_bugs(['src', PKG])
+status = bts.get_status(bugs)
+bugs = []
+status.each_pair do |k, v|
+  next if v.done != ''
+  puts "#{k} #{v.package} #{v.severity} #{v.pending} #{v.subject}"
+  bugs << k
+end
+puts "-- Press enter to continue --"
+STDIN.readline
+tmp=`mktemp /tmp/email.#{PKG}.XXXXXX`.chomp
+f = File::new(tmp, "w")
+f.puts <<EOF
+From: #{ENV['DEBFULLNAME']} <#{ENV['DEBEMAIL']}>
+To: TMPL_BUGNO-done at bugs.debian.org
+Subject: #{PKG} has been removed from Debian
+
+Version: #{VER}+rm
+
+The #{PKG} binary package has been removed from Debian so we are closing
+the bugs that were still opened against it.
+
+For more information about this package's removal, read
+http://ftp-master.debian.org/removals-full.txt . That bug might give the reasons why
+this package was removed, and suggestions of possible replacements.
+
+Don't hesitate to reply to this mail if you have any question.
+
+Thank you for your contribution to Debian.
+
+Kind regards,
+--
+#{ENV['DEBFULLNAME']}
+EOF
+f.close
+ed=ENV['EDITOR']
+if ed.nil?
+  ed='sensible-editor'
+end
+system("#{ed} #{tmp}")
+s = IO::read(tmp)
+puts "-- press enter to send the mails --"
+STDIN.readline
+bugs.each do |b|
+  puts "Sending mail to close ##{b}"
+  if SENDMAIL
+    f = IO::popen("/usr/sbin/sendmail -t", "w")
+  else
+    f = File::new("email.#{PKG}.#{b}.txt", "w")
+  end
+  mail = s.gsub('TMPL_BUGNO', b.to_s)
+  f.puts mail
+  f.close
+end


Property changes on: bapase/rm_pkgs/mass-close-bin
___________________________________________________________________
Name: svn:executable
   + *

Added: bapase/rm_pkgs/mass-close-pkg
===================================================================
--- bapase/rm_pkgs/mass-close-pkg	                        (rev 0)
+++ bapase/rm_pkgs/mass-close-pkg	2009-03-22 00:05:28 UTC (rev 1417)
@@ -0,0 +1,78 @@
+#!/usr/bin/ruby -w
+
+if ARGV.length != 3
+  puts "Usage: mass-close-pkg sourcepackage last-version-in-debian removal-bugno"
+  puts "+rm will be added automatically."
+  puts "please set the DEBFULLNAME and DEBEMAIL env variables (see e.g: config-lucas)"
+  exit(1)
+end
+
+require 'pp'
+require 'soap/rpc/driver'
+bts = SOAP::RPC::Driver::new('http://bugs.debian.org/cgi-bin/soap.cgi', '/Debbugs/SOAP')
+bts.add_method('get_status', 'bugs')
+bts.add_method('get_bugs', 'params')
+bts.add_method('get_bug_log', 'params')
+bts.add_method('get_usertag', 'email', 'tag')
+bts.add_method('newest_bugs', 'num')
+
+PKG=ARGV[0]
+VER=ARGV[1]
+RMBUG=ARGV[2]
+SENDMAIL=true
+
+puts "---- Bugs for #{PKG} ----"
+bugs = bts.get_bugs(['src', PKG])
+status = bts.get_status(bugs)
+bugs = []
+status.each_pair do |k, v|
+  next if v.done != ''
+  puts "#{k} #{v.package} #{v.severity} #{v.pending} #{v.subject}"
+  bugs << k
+end
+puts "-- Press enter to continue --"
+STDIN.readline
+tmp=`mktemp /tmp/email.#{PKG}.XXXXXX`.chomp
+f = File::new(tmp, "w")
+f.puts <<EOF
+From: #{ENV['DEBFULLNAME']} <#{ENV['DEBEMAIL']}>
+To: TMPL_BUGNO-done at bugs.debian.org
+Subject: #{PKG} has been removed from Debian, closing #TMPL_BUGNO
+
+Version: #{VER}+rm
+
+The #{PKG} package has been removed from Debian so we are closing
+the bugs that were still opened against it.
+
+For more information about this package's removal, read
+http://bugs.debian.org/#{RMBUG} . That bug might give the reasons why
+this package was removed, and suggestions of possible replacements.
+
+Don't hesitate to reply to this mail if you have any question.
+
+Thank you for your contribution to Debian.
+
+Kind regards,
+--
+#{ENV['DEBFULLNAME']}
+EOF
+f.close
+ed=ENV['EDITOR']
+if ed.nil?
+  ed='sensible-editor'
+end
+system("#{ed} #{tmp}")
+s = IO::read(tmp)
+puts "-- press enter to send the mails --"
+STDIN.readline
+bugs.each do |b|
+  puts "Sending mail to close ##{b}"
+  if SENDMAIL
+    f = IO::popen("/usr/sbin/sendmail -t", "w")
+  else
+    f = File::new("email.#{PKG}.#{b}.txt", "w")
+  end
+  mail = s.gsub('TMPL_BUGNO', b.to_s)
+  f.puts mail
+  f.close
+end


Property changes on: bapase/rm_pkgs/mass-close-pkg
___________________________________________________________________
Name: svn:executable
   + *

Deleted: bapase/rm_pkgs/mass-reassign
===================================================================
--- bapase/rm_pkgs/mass-reassign	2009-03-19 17:43:06 UTC (rev 1416)
+++ bapase/rm_pkgs/mass-reassign	2009-03-22 00:05:28 UTC (rev 1417)
@@ -1,82 +0,0 @@
-#!/usr/bin/ruby -w
-
-if ARGV.length != 2
-  puts "Usage: mass-reassign package dstpackage"
-  puts "please set the DEBFULLNAME and DEBEMAIL env variables (see e.g: config-lucas)"
-  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')
-bts.add_method('get_status', 'bugs')
-bts.add_method('get_bugs', 'params')
-bts.add_method('get_bug_log', 'params')
-bts.add_method('get_usertag', 'email', 'tag')
-bts.add_method('newest_bugs', 'num')
-
-PKG=ARGV[0]
-NPKG=ARGV[1]
-SENDMAIL=true
-
-puts "------bugs for #{PKG}-----"
-bugs = bts.get_bugs(['package', PKG])
-status = bts.get_status(bugs)
-bugs = []
-status.each_pair do |k, v|
-  next if v.done != ''
-  puts "#{k} #{v.package} #{v.severity} #{v.pending} #{v.subject}"
-  bugs << k
-end
-puts "-- press enter to continue --"
-STDIN.readline
-tmp=`mktemp /tmp/email.#{PKG}.XXXXXX`.chomp
-f = File::new(tmp, "w")
-f.puts <<EOF
-From: #{ENV['DEBFULLNAME']} <#{ENV['DEBEMAIL']}>
-To: TMPL_TO at bugs.debian.org, control at bugs.debian.org, #{NPKG}@packages.debian.org
-Subject: Reassigning bugs from #{PKG} to #{NPKG}
-
-TMPL_REASSIGN
-
-The #{PKG} package has been removed from Debian. We are reassigning 
-its bugs to the #{NPKG} package. Please have a look at them, 
-and close them if they don't apply to #{NPKG} anymore.
-
-Don't hesitate to reply to this mail if you have any question.
-
-Kind regards,
---
-#{ENV['DEBFULLNAME']}
-EOF
-f.close
-ed=ENV['EDITOR']
-if ed.nil?
-  ed='sensible-editor'
-end
-system("#{ed} #{tmp}")
-s = IO::read(tmp)
-puts "-- press enter to send the mails --"
-STDIN.readline
-to = bugs.join('@bugs.debian.org, ')
-reass = ""
-bugs.each do |b|
-  reass += "reassign #{b} #{NPKG}\n"
-end
-reass += "thanks"
-puts "Sending mail"
-if SENDMAIL
-  f = IO::popen("/usr/sbin/sendmail -t", "w")
-else
-  f = File::new("email.#{PKG}.txt", "w")
-end
-mail = s.gsub('TMPL_TO', to)
-mail = mail.gsub('TMPL_REASSIGN', reass)
-f.puts mail
-f.close

Copied: bapase/rm_pkgs/mass-reassign (from rev 1416, bapase/rm_pkgs/mass-reassign)
===================================================================
--- bapase/rm_pkgs/mass-reassign	                        (rev 0)
+++ bapase/rm_pkgs/mass-reassign	2009-03-22 00:05:28 UTC (rev 1417)
@@ -0,0 +1,82 @@
+#!/usr/bin/ruby -w
+
+if ARGV.length != 2
+  puts "Usage: mass-reassign package dstpackage"
+  puts "please set the DEBFULLNAME and DEBEMAIL env variables (see e.g: config-lucas)"
+  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')
+bts.add_method('get_status', 'bugs')
+bts.add_method('get_bugs', 'params')
+bts.add_method('get_bug_log', 'params')
+bts.add_method('get_usertag', 'email', 'tag')
+bts.add_method('newest_bugs', 'num')
+
+PKG=ARGV[0]
+NPKG=ARGV[1]
+SENDMAIL=true
+
+puts "------bugs for #{PKG}-----"
+bugs = bts.get_bugs(['package', PKG])
+status = bts.get_status(bugs)
+bugs = []
+status.each_pair do |k, v|
+  next if v.done != ''
+  puts "#{k} #{v.package} #{v.severity} #{v.pending} #{v.subject}"
+  bugs << k
+end
+puts "-- press enter to continue --"
+STDIN.readline
+tmp=`mktemp /tmp/email.#{PKG}.XXXXXX`.chomp
+f = File::new(tmp, "w")
+f.puts <<EOF
+From: #{ENV['DEBFULLNAME']} <#{ENV['DEBEMAIL']}>
+To: TMPL_TO at bugs.debian.org, control at bugs.debian.org, #{NPKG}@packages.debian.org
+Subject: Reassigning bugs from #{PKG} to #{NPKG}
+
+TMPL_REASSIGN
+
+The #{PKG} package has been removed from Debian. We are reassigning 
+its bugs to the #{NPKG} package. Please have a look at them, 
+and close them if they don't apply to #{NPKG} anymore.
+
+Don't hesitate to reply to this mail if you have any question.
+
+Kind regards,
+--
+#{ENV['DEBFULLNAME']}
+EOF
+f.close
+ed=ENV['EDITOR']
+if ed.nil?
+  ed='sensible-editor'
+end
+system("#{ed} #{tmp}")
+s = IO::read(tmp)
+puts "-- press enter to send the mails --"
+STDIN.readline
+to = bugs.join('@bugs.debian.org, ')
+reass = ""
+bugs.each do |b|
+  reass += "reassign #{b} #{NPKG}\n"
+end
+reass += "thanks"
+puts "Sending mail"
+if SENDMAIL
+  f = IO::popen("/usr/sbin/sendmail -t", "w")
+else
+  f = File::new("email.#{PKG}.txt", "w")
+end
+mail = s.gsub('TMPL_TO', to)
+mail = mail.gsub('TMPL_REASSIGN', reass)
+f.puts mail
+f.close




More information about the Collab-qa-commits mailing list