[Dehs-devel] r123 - trunk

atomo64-guest at alioth.debian.org atomo64-guest at alioth.debian.org
Mon Mar 24 17:51:35 UTC 2008


Author: atomo64-guest
Date: 2008-03-24 17:51:34 +0000 (Mon, 24 Mar 2008)
New Revision: 123

Modified:
   trunk/dehs_pg.php
Log:
$return should contain the exit status code, not the output

Modified: trunk/dehs_pg.php
===================================================================
--- trunk/dehs_pg.php	2008-03-24 17:45:37 UTC (rev 122)
+++ trunk/dehs_pg.php	2008-03-24 17:51:34 UTC (rev 123)
@@ -448,7 +448,8 @@
     $remotefile='http://qa.debian.org/data/popcon/popcon.db';
 
     $return = 0;
-    exec('/usr/bin/wget -qNc -O'.escapeshellarg($localtempfile).' ' . escapeshellarg($remotefile), $return);
+    $output = null;
+    exec('/usr/bin/wget -qNc -O'.escapeshellarg($localtempfile).' ' . escapeshellarg($remotefile), $output, $return);
 
     if ($return != 0) {
         echo __FUNCTION__ . "wget exited with status $return!\n";




More information about the Dehs-devel mailing list