[Dehs-devel] r150 - trunk

atomo64-guest at alioth.debian.org atomo64-guest at alioth.debian.org
Thu Jul 10 02:39:18 UTC 2008


Author: atomo64-guest
Date: 2008-07-10 02:39:17 +0000 (Thu, 10 Jul 2008)
New Revision: 150

Modified:
   trunk/dehs_pg.php
Log:
Several improvements to the BTS page parser including support for bugs older than one year


Modified: trunk/dehs_pg.php
===================================================================
--- trunk/dehs_pg.php	2008-07-10 02:02:51 UTC (rev 149)
+++ trunk/dehs_pg.php	2008-07-10 02:39:17 UTC (rev 150)
@@ -740,7 +740,7 @@
     print "Total lines => $totline\n";
     foreach ($ferrors as $line) {
         # print $line . "\n";
-        if (preg_match("/Package:.+?>([^<]+)<\/a>.+<strong>((\d+)\syear\sand\s|)(\d+)\sdays/sS",$line,$matches)) {
+        if (preg_match("/Package:.+?>([^<]+)<\/a>.+?<strong>((\d+)\syears?\sand\s|)(\d+)\sdays?/sS",$line,$matches)) {
             $errors[$matches[1]][err_tot]++;
             $errors[$matches[1]][days]+=$matches[3]*365+$matches[4];
             #if ($matches[3]) print "Anni $matches[3]";




More information about the Dehs-devel mailing list