From 09665205ca3d28272528be3226956ae7c2e5cc9d Mon Sep 17 00:00:00 2001 From: Oliver Tonnhofer Date: Mon, 4 Nov 2013 15:04:07 +0100 Subject: [PATCH] always write last.state.txt after -read --- import_/import.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/import_/import.go b/import_/import.go index 7c8c297..f2288cb 100644 --- a/import_/import.go +++ b/import_/import.go @@ -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")) } }