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

gothicx-guest at alioth.debian.org gothicx-guest at alioth.debian.org
Sat Jan 10 15:10:14 UTC 2009


Author: gothicx-guest
Date: 2009-01-10 15:10:13 +0000 (Sat, 10 Jan 2009)
New Revision: 1376

Modified:
   bapase/rm_pkgs/README
   bapase/rm_pkgs/config-lucas
   bapase/rm_pkgs/get-removals.txt
   bapase/rm_pkgs/mass-close
   bapase/rm_pkgs/mass-reassign
Log:
Replace ENV variables by DEBFULLNAME / DEBEMAIL. Add removals 2008 to get-removals. Update new instructions to README

Modified: bapase/rm_pkgs/README
===================================================================
--- bapase/rm_pkgs/README	2009-01-07 22:38:45 UTC (rev 1375)
+++ bapase/rm_pkgs/README	2009-01-10 15:10:13 UTC (rev 1376)
@@ -49,12 +49,11 @@
 collab-qa/bapase/rm_pkgs$ ./mass-close 
 Usage: mass-close sourcepackage last-version-in-debian removal-bugno
 +rm will be added automatically.
-please set the RMFROM and RMSIG env variables
+please set the DEBFULLNAME and DEBEMAIL env variables
 
 collab-qa/bapase/rm_pkgs$ cat config-lucas 
-export RMFROM="Lucas Nussbaum <lucas at lucas-nussbaum.net>"
-export RMSIG="-- 
-Lucas"
+export DEBFULLNAME="Lucas Nussbaum"
+export DEBEMAIL="lucas at lucas-nussbaum.net"
 
 collab-qa/bapase/rm_pkgs$ source config-lucas
 
@@ -86,6 +85,3 @@
 
 There are currently ~1600 bugs that might need to be closed. Send
 suggestions/comments to <lucas at debian.org>.
-
-TODO:
-write a script to mass-reassign bugs using a template

Modified: bapase/rm_pkgs/config-lucas
===================================================================
--- bapase/rm_pkgs/config-lucas	2009-01-07 22:38:45 UTC (rev 1375)
+++ bapase/rm_pkgs/config-lucas	2009-01-10 15:10:13 UTC (rev 1376)
@@ -1,3 +1,2 @@
-export RMFROM="Lucas Nussbaum <lucas at lucas-nussbaum.net>"
-export RMSIG="-- 
-Lucas"
+export DEBFULLNAME="Lucas Nussbaum"
+export DEBEMAIL="lucas at lucas-nussbaum.net"

Modified: bapase/rm_pkgs/get-removals.txt
===================================================================
--- bapase/rm_pkgs/get-removals.txt	2009-01-07 22:38:45 UTC (rev 1375)
+++ bapase/rm_pkgs/get-removals.txt	2009-01-10 15:10:13 UTC (rev 1376)
@@ -1,6 +1,7 @@
 #!/bin/bash
 
 wget -c http://ftp-master.debian.org/removals.txt
+wget -c http://ftp-master.debian.org/removals-2008.txt
 wget -c http://ftp-master.debian.org/removals-2007.txt
 wget -c http://ftp-master.debian.org/removals-2006.txt
 wget -c http://ftp-master.debian.org/removals-2005.txt

Modified: bapase/rm_pkgs/mass-close
===================================================================
--- bapase/rm_pkgs/mass-close	2009-01-07 22:38:45 UTC (rev 1375)
+++ bapase/rm_pkgs/mass-close	2009-01-10 15:10:13 UTC (rev 1376)
@@ -3,7 +3,7 @@
 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 RMFROM and RMSIG env variables (try with $. config-generic)"
+  puts "please set the DEBFULLNAME and DEBEMAIL env variables (see e.g: config-lucas)"
   exit(1)
 end
 
@@ -21,7 +21,7 @@
 RMBUG=ARGV[2]
 SENDMAIL=true
 
-puts "------bugs for #{PKG}-----"
+puts "---- Bugs for #{PKG} ----"
 bugs = bts.get_bugs(['src', PKG])
 status = bts.get_status(bugs)
 bugs = []
@@ -30,12 +30,12 @@
   puts "#{k} #{v.package} #{v.severity} #{v.pending} #{v.subject}"
   bugs << k
 end
-puts "-- press enter to continue --"
+puts "-- Press enter to continue --"
 STDIN.readline
 tmp=`mktemp /tmp/email.#{PKG}.XXXXXX`.chomp
 f = File::new(tmp, "w")
 f.puts <<EOF
-From: #{ENV['RMFROM']}
+From: #{ENV['DEBFULLNAME']} <#{ENV['DEBEMAIL']}>
 To: TMPL_BUGNO-done at bugs.debian.org
 Subject: #{PKG} has been removed from Debian, closing #TMPL_BUGNO
 
@@ -52,7 +52,10 @@
 Don't hesitate to reply to this mail if you have any question.
 
 Thank you for your contribution to Debian.
-#{ENV['RMSIG']}
+
+Kind regards,
+--
+#{ENV['DEBFULLNAME']}
 EOF
 f.close
 ed=ENV['EDITOR']

Modified: bapase/rm_pkgs/mass-reassign
===================================================================
--- bapase/rm_pkgs/mass-reassign	2009-01-07 22:38:45 UTC (rev 1375)
+++ bapase/rm_pkgs/mass-reassign	2009-01-10 15:10:13 UTC (rev 1376)
@@ -2,7 +2,7 @@
 
 if ARGV.length != 2
   puts "Usage: mass-reassign package dstpackage"
-  puts "please set the RMFROM and RMSIG env variables (try with $. config-generic)"
+  puts "please set the DEBFULLNAME and DEBEMAIL env variables (see e.g: config-lucas)"
   exit(1)
 end
 
@@ -39,7 +39,7 @@
 tmp=`mktemp /tmp/email.#{PKG}.XXXXXX`.chomp
 f = File::new(tmp, "w")
 f.puts <<EOF
-From: #{ENV['RMFROM']}
+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}
 
@@ -51,7 +51,10 @@
 #{NPKG} anymore.
 
 Don't hesitate to reply to this mail if you have any question.
-#{ENV['RMSIG']}
+
+Kind regards,
+--
+#{ENV['DEBFULLNAME']}
 EOF
 f.close
 ed=ENV['EDITOR']




More information about the Collab-qa-commits mailing list