mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
updates: always remove output file and start with correct sequence id
This commit is contained in:
@@ -262,12 +262,12 @@ if ($aResult['import-osmosis'] || $aResult['import-osmosis-all']) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Download the next batch of changes.
|
// Download the next batch of changes.
|
||||||
unlink($sImportFile);
|
|
||||||
do {
|
do {
|
||||||
$fCMDStartTime = time();
|
$fCMDStartTime = time();
|
||||||
$iNextSeq = (int) $aLastState['sequence_id'] + 1;
|
$iNextSeq = (int) $aLastState['sequence_id'];
|
||||||
unset($aOutput);
|
unset($aOutput);
|
||||||
echo "$sCMDDownload -I $iNextSeq\n";
|
echo "$sCMDDownload -I $iNextSeq\n";
|
||||||
|
unlink($sImportFile);
|
||||||
exec($sCMDDownload.' -I '.$iNextSeq, $aOutput, $iResult);
|
exec($sCMDDownload.' -I '.$iNextSeq, $aOutput, $iResult);
|
||||||
|
|
||||||
if ($iResult == 3) {
|
if ($iResult == 3) {
|
||||||
|
|||||||
Reference in New Issue
Block a user