]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge remote-tracking branch 'upstream/master'
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 27 May 2017 15:03:59 +0000 (17:03 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 27 May 2017 15:03:59 +0000 (17:03 +0200)
utils/update.php

index 972a6fdf8a91e83129dc20f3c23b404b162e8b9e..f7f20aa3f76fc14541e87dd0d5feaccfcd19f449 100755 (executable)
@@ -263,12 +263,12 @@ if ($aResult['import-osmosis'] || $aResult['import-osmosis-all']) {
             }
 
             // Download the next batch of changes.
-            unlink($sImportFile);
             do {
                 $fCMDStartTime = time();
-                $iNextSeq = (int) $aLastState['sequence_id'] + 1;
+                $iNextSeq = (int) $aLastState['sequence_id'];
                 unset($aOutput);
                 echo "$sCMDDownload -I $iNextSeq\n";
+                unlink($sImportFile);
                 exec($sCMDDownload.' -I '.$iNextSeq, $aOutput, $iResult);
 
                 if ($iResult == 3) {