always write last.state.txt after -read
parent
9376230048
commit
09665205ca
|
@ -114,13 +114,11 @@ func Import() {
|
||||||
elementCounts = progress.Stop()
|
elementCounts = progress.Stop()
|
||||||
osmCache.Close()
|
osmCache.Close()
|
||||||
log.StopStep(step)
|
log.StopStep(step)
|
||||||
if config.ImportOptions.Diff {
|
|
||||||
diffstate := state.FromPbf(pbfFile)
|
diffstate := state.FromPbf(pbfFile)
|
||||||
if diffstate != nil {
|
if diffstate != nil {
|
||||||
diffstate.WriteToFile(path.Join(config.BaseOptions.CacheDir, "last.state.txt"))
|
diffstate.WriteToFile(path.Join(config.BaseOptions.CacheDir, "last.state.txt"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if config.ImportOptions.Write {
|
if config.ImportOptions.Write {
|
||||||
stepImport := log.StartStep("Importing OSM data")
|
stepImport := log.StartStep("Importing OSM data")
|
||||||
|
|
Loading…
Reference in New Issue