[Collab-qa-commits] r1914 - retitle-old-ita-itp
Lucas Nussbaum
lucas at alioth.debian.org
Sat Feb 19 17:01:28 UTC 2011
Author: lucas
Date: 2011-02-19 17:01:25 +0000 (Sat, 19 Feb 2011)
New Revision: 1914
Modified:
retitle-old-ita-itp/retitle-old-ita-itp.rb
Log:
update script to retitle old ITA/ITPs
Modified: retitle-old-ita-itp/retitle-old-ita-itp.rb
===================================================================
--- retitle-old-ita-itp/retitle-old-ita-itp.rb 2011-02-15 22:46:29 UTC (rev 1913)
+++ retitle-old-ita-itp/retitle-old-ita-itp.rb 2011-02-19 17:01:25 UTC (rev 1914)
@@ -5,10 +5,12 @@
require 'pp'
require 'dbi'
-ita_months = 12
-itp_months = 12
+ita_months = 6
+itp_months = 6
+really_mail = true
+
#### old ITA
dbh = DBI::connect('DBI:Pg:dbname=udd;port=5441;host=localhost', 'guest')
@@ -58,7 +60,9 @@
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")
+ if really_mail
+ raise "sendmail failed for #{source}!" if not system("/usr/sbin/sendmail -t < tmpfile")
+ end
end
puts "old ITA: #{rows.length} packages processed"
@@ -112,6 +116,8 @@
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")
+ if really_mail
+ raise "sendmail failed for #{source}!" if not system("/usr/sbin/sendmail -t < tmpfile")
+ end
end
puts "old ITP: #{rows.length} packages processed"
More information about the Collab-qa-commits
mailing list