[Collab-qa-commits] r730 - wnpp-monitor
lucas at alioth.debian.org
lucas at alioth.debian.org
Fri Mar 7 07:46:32 UTC 2008
Author: lucas
Date: 2008-03-07 07:46:32 +0000 (Fri, 07 Mar 2008)
New Revision: 730
Modified:
wnpp-monitor/wnpp-monitor.rb
Log:
added RM - > O transition
Modified: wnpp-monitor/wnpp-monitor.rb
===================================================================
--- wnpp-monitor/wnpp-monitor.rb 2008-03-07 01:54:45 UTC (rev 729)
+++ wnpp-monitor/wnpp-monitor.rb 2008-03-07 07:46:32 UTC (rev 730)
@@ -30,7 +30,6 @@
status.each_pair do |k,v|
next if v.pending == "done"
next if v.subject !~ /^RM: ([^ ]+) /
- p $1
pkg = $1
next if pkg =~ /\// # removal specific to some dist
$wnpp[pkg] = [ 'RM', k.to_i ]
@@ -106,6 +105,8 @@
write_mail(pkg, "[wnpp] The maintained of #{pkg} is looking for adopters",
"The maintainer of #{pkg} package in Debian is looking for people willing to adopt the package.",
$wnpp[pkg][1])
+ elsif ow[pkg] == 'RM' and w[pkg] == 'O'
+ # happens after removal. do nothing.
else
puts "Unknown transition for #{pkg}: #{ow[pkg]} -> #{w[pkg]}"
exit(1)
More information about the Collab-qa-commits
mailing list