X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/86acaa5264daf72f6898338cc3668588bc608787..1876fe42c90640b337e34b820afcc7fd13f40ee5:/utils/update.php?ds=sidebyside diff --git a/utils/update.php b/utils/update.php index a1b5e54c..2b72fe82 100755 --- a/utils/update.php +++ b/utils/update.php @@ -262,12 +262,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) {