always write last.state.txt after -read
parent
9376230048
commit
09665205ca
|
@ -114,11 +114,9 @@ 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"))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue