always write last.state.txt after -read

master
Oliver Tonnhofer 2013-11-04 15:04:07 +01:00
parent 9376230048
commit 09665205ca
1 changed files with 3 additions and 5 deletions

View File

@ -114,11 +114,9 @@ func Import() {
elementCounts = progress.Stop()
osmCache.Close()
log.StopStep(step)
if config.ImportOptions.Diff {
diffstate := state.FromPbf(pbfFile)
if diffstate != nil {
diffstate.WriteToFile(path.Join(config.BaseOptions.CacheDir, "last.state.txt"))
}
diffstate := state.FromPbf(pbfFile)
if diffstate != nil {
diffstate.WriteToFile(path.Join(config.BaseOptions.CacheDir, "last.state.txt"))
}
}