Author: geissert Date: 2009-07-10 17:21:12 +0000 (Fri, 10 Jul 2009) New Revision: 1507
Modified: ddpo-by-mail/reminder-mail.rb Log: Fix an error where "x errors and 0 warnings" would get on the mails Modified: ddpo-by-mail/reminder-mail.rb =================================================================== --- ddpo-by-mail/reminder-mail.rb 2009-07-10 17:00:44 UTC (rev 1506) +++ ddpo-by-mail/reminder-mail.rb 2009-07-10 17:21:12 UTC (rev 1507) @@ -284,7 +284,7 @@ if iss[1] > 0 text[pkg][T_LINTIAN] += " #{iss[1]} error(s)" end - if iss[2] + if iss[2] and iss[2].to_i > 0 text[pkg][T_LINTIAN] += " and" if iss[1] > 0 text[pkg][T_LINTIAN] += " #{iss[2]} warning(s)" end _______________________________________________ Collab-qa-commits mailing list Collab-qa-commits@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/collab-qa-commits