X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/496a0f1384594aad954f7abcf124e8da86c4b3a1..ebbd03efe08c33fe81fdcf17e498d1d14546a314:/utils/update.php?ds=inline diff --git a/utils/update.php b/utils/update.php index 972a6fdf..f7f20aa3 100755 --- a/utils/update.php +++ b/utils/update.php @@ -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) {