[Dehs-devel] r188 - trunk

Raphael Geissert geissert at alioth.debian.org
Fri Jan 21 02:48:02 UTC 2011


Author: geissert
Date: 2011-01-21 02:48:01 +0000 (Fri, 21 Jan 2011)
New Revision: 188

Modified:
   trunk/dehs_pg.php
Log:
Fix incorrect handling of epochs (Closes: #598710)


Modified: trunk/dehs_pg.php
===================================================================
--- trunk/dehs_pg.php	2010-09-24 15:33:49 UTC (rev 187)
+++ trunk/dehs_pg.php	2011-01-21 02:48:01 UTC (rev 188)
@@ -169,6 +169,10 @@
 function download_diff(&$conn_id,$pkg,$version,$directory,$md5_diff,$md5_atsource,$diff_kb,$dist) {
     global $dirs,$mirrors;
     $diffTypes = array(".diff.gz",".debian.tar.gz",".debian.tar.bz2");
+
+    if (strpos($version, ':') !== false)
+	$version = substr($version, strpos($version, ':')+1);
+
     foreach($diffTypes as $diffType) {
         $localfile=$dirs[diffs_dir] . "/$pkg" . "_" . $version . $diffType;
         $remotefile="/debian/$directory/$pkg" . "_" . "$version" . $diffType;




More information about the Dehs-devel mailing list