]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge branch 'osmosis_error_return' of https://github.com/woodpeck/Nominatim
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 9 Sep 2013 11:46:59 +0000 (13:46 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 9 Sep 2013 11:46:59 +0000 (13:46 +0200)
1  2 
utils/update.php

diff --combined utils/update.php
index d1ded5adb203df0d7031210b241322fac5185d8d,dfd533fd696adddc6a44bc652a969143f36c0200..0e26b31152d1d3445ae233defb094b3d25bd524f
                        $sNextFile = $aResult['import-diff'];
                        if (!file_exists($sNextFile))
                        {
 -                              echo "Cannot open $nextFile\n";
 +                              echo "Cannot open $sNextFile\n";
                                exit;
                        }
                        // Don't update the import status - we don't know what this file contains
  
                                                unset($aReplicationLag);
                                                exec($sCMDCheckReplicationLag, $aReplicationLag, $iErrorLevel); 
-                                               while ($iErrorLevel == 1 || $aReplicationLag[0] < 1)
+                                               while ($iErrorLevel > 0 || $aReplicationLag[0] < 1)
                                                {
                                                        if ($iErrorLevel)
                                                        {
                                        $fCMDStartTime = time();
                                        echo $sCMDDownload."\n";
                                        exec($sCMDDownload, $sJunk, $iErrorLevel);
-                                       while ($iErrorLevel == 1)
+                                       while ($iErrorLevel > 0)
                                        {
                                                echo "Error: $iErrorLevel\n";
                                                sleep(60);