From: Sarah Hoffmann Date: Sat, 27 May 2017 15:03:59 +0000 (+0200) Subject: Merge remote-tracking branch 'upstream/master' X-Git-Tag: deploy~389 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/91129b37f605a06f85bc8aa07eede84fb16ad644?hp=496a0f1384594aad954f7abcf124e8da86c4b3a1 Merge remote-tracking branch 'upstream/master' --- 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) {