X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/496a0f1384594aad954f7abcf124e8da86c4b3a1..91129b37f605a06f85bc8aa07eede84fb16ad644:/utils/update.php 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) {