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: [EMAIL PROTECTED]
-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
_______________________________________________
Collab-qa-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/collab-qa-commits