[Dehs-devel] r127 - trunk

atomo64-guest at alioth.debian.org atomo64-guest at alioth.debian.org
Sat Apr 12 20:22:04 UTC 2008


Author: atomo64-guest
Date: 2008-04-12 20:22:03 +0000 (Sat, 12 Apr 2008)
New Revision: 127

Modified:
   trunk/dehs_pg.php
Log:
Tighten the Sources parser regexp so it only matches md5 sums, and not the newly introduced sha1* ones


Modified: trunk/dehs_pg.php
===================================================================
--- trunk/dehs_pg.php	2008-04-05 22:52:46 UTC (rev 126)
+++ trunk/dehs_pg.php	2008-04-12 20:22:03 UTC (rev 127)
@@ -185,7 +185,7 @@
             $filename=$dirs['sources_dir'] . "/$dist/$section/Sources.gz";
             print "\nI'm parsing $dist/$section => Sources.gz\n";
             # 1 Pacchetto - 2 versione - 3 np - 4 Directory - 5 md5
-            $regexp="/Package:\s($initial.*)[^a]Binary:\s(.+)[^a]Version:\s(\d+:)?(.+)[^a]Priority.+Maintainer:.+<([^>]+)>[^a].+Directory:\s(.+)[^a]Files:.+\s(\S+)\s(\d+)\s" . '\1\S+' . "\.diff\.gz[^a](Uploaders:\s(.+)[^a])?/Ssi";
+            $regexp="/Package:\s($initial.*)[^a]Binary:\s(.+)[^a]Version:\s(\d+:)?(.+)[^a]Priority.+Maintainer:.+<([^>]+)>[^a].+Directory:\s(.+)[^a]Files:.+\s(\S{33})\s(\d+)\s" . '\1\S+' . "\.diff\.gz[^a](Uploaders:\s(.+)[^a])?/Ssi";
             $zp = gzopen($filename, "r") or die_status("Could not open $filename");
             $extracted=tempnam("/tmp/", "$dist_$section_Sources");
             exec("gzip -c -d $filename > $extracted");




More information about the Dehs-devel mailing list