From: Sarah Hoffmann Date: Sat, 27 May 2017 15:02:34 +0000 (+0200) Subject: updates: always remove output file and start with correct sequence id X-Git-Tag: v3.0.0~27 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/1876fe42c90640b337e34b820afcc7fd13f40ee5 updates: always remove output file and start with correct sequence id --- 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) {