[Collab-qa-commits] r2043 - retitle-old-ita-itp

Lucas Nussbaum lucas at alioth.debian.org
Sun Oct 9 12:44:57 UTC 2011


Author: lucas
Date: 2011-10-09 12:44:57 +0000 (Sun, 09 Oct 2011)
New Revision: 2043

Added:
   retitle-old-ita-itp/rmpkg.rb
Log:
add script to generate removal mail for long orphaned bugs

Added: retitle-old-ita-itp/rmpkg.rb
===================================================================
--- retitle-old-ita-itp/rmpkg.rb	                        (rev 0)
+++ retitle-old-ita-itp/rmpkg.rb	2011-10-09 12:44:57 UTC (rev 2043)
@@ -0,0 +1,33 @@
+#!/usr/bin/ruby
+
+source=ARGV[0]
+id=ARGV[1]
+reason=ARGV[2..-1].join(' ')
+puts "Using reason: #{reason}"
+
+f = File::new('tmpfile', 'w')
+f.puts <<-EOF
+From: Lucas Nussbaum <lucas at debian.org>
+To: #{id}@bugs.debian.org
+Cc: control at bugs.debian.org
+Subject: #{source}: requesting removal
+
+reassign #{id} ftp.debian.org
+retitle #{id} RM: #{source} -- RoQA; orphaned #{reason}
+owner #{id} !
+thanks
+
+Hi,
+
+The #{source} package has been orphaned for a long time, and nobody has
+been willing to take it over.
+I am therefore requesting its removal from Debian.
+
+If you still need the package, or want to reintroduce it in Debian, the
+latest version ever found in Debian is available from
+http://snapshot.debian.org/package/#{source}/
+-- 
+Lucas, for the QA team <debian-qa at lists.debian.org>
+ EOF
+f.close
+raise "sendmail failed for #{source}!" if not system("/usr/sbin/sendmail -t < tmpfile")


Property changes on: retitle-old-ita-itp/rmpkg.rb
___________________________________________________________________
Added: svn:executable
   + *




More information about the Collab-qa-commits mailing list