[Collab-qa-commits] r1607 - ddpo-by-mail

Raphael Geissert geissert at alioth.debian.org
Wed Oct 28 23:52:16 UTC 2009


Author: geissert
Date: 2009-10-28 23:52:16 +0000 (Wed, 28 Oct 2009)
New Revision: 1607

Modified:
   ddpo-by-mail/reminder-mail.rb
Log:
Correctly parse ddpo_maintainers so that contrib and non-free are included
Which in turn fixes the cases where there's no maintainer-package relationship


Modified: ddpo-by-mail/reminder-mail.rb
===================================================================
--- ddpo-by-mail/reminder-mail.rb	2009-10-28 23:50:28 UTC (rev 1606)
+++ ddpo-by-mail/reminder-mail.rb	2009-10-28 23:52:16 UTC (rev 1607)
@@ -36,8 +36,8 @@
 maintainers_name = Hash::new { "" }
 f = IO::read('data/ddpo_maintainers')
 f.each_line do |l|
-  n, email, noid, realname, packages, rest = l.split(/;/)
-  maintainers_pkg[email] = packages.split(/ /)
+  n, email, noid, realname, packages = l.split(';', 5)
+  maintainers_pkg[email] = packages.tr_s(';', ' ').split(' ')
   realname.gsub!(/í/, 'i')
   maintainers_name[email] = realname
 end




More information about the Collab-qa-commits mailing list