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

lucas at alioth.debian.org lucas at alioth.debian.org
Fri Apr 11 12:14:52 UTC 2008


Author: lucas
Date: 2008-04-11 12:14:51 +0000 (Fri, 11 Apr 2008)
New Revision: 778

Modified:
   bapase/rm_pkgs/mass-close
Log:
fixed bugs in mass-close script

Modified: bapase/rm_pkgs/mass-close
===================================================================
--- bapase/rm_pkgs/mass-close	2008-04-11 08:11:04 UTC (rev 777)
+++ bapase/rm_pkgs/mass-close	2008-04-11 12:14:51 UTC (rev 778)
@@ -33,7 +33,7 @@
 f.puts <<EOF
 From: #{ENV['RMFROM']}
 To: TMPL_BUGNO-done at bugs.debian.org
-Subject: #{PKG} has been removed from Debian, closing TMPL_BUGNO
+Subject: #{PKG} has been removed from Debian, closing #TMPL_BUGNO
 
 Version: #{VER}+rm
 
@@ -59,12 +59,11 @@
 s = IO::read(tmp)
 bugs.each do |b|
   if SENDMAIL
-    f = IO::open("/usr/sbin/sendmail -t", "w")
+    f = IO::popen("/usr/sbin/sendmail -t", "w")
   else
     f = File::new("email.#{PKG}.#{b}.txt", "w")
   end
-  mail = s
-  mail.gsub!('TMPL_BUGNO', b.to_s)
+  mail = s.gsub('TMPL_BUGNO', b.to_s)
   f.puts mail
   f.close
 end




More information about the Collab-qa-commits mailing list