]> git.openstreetmap.org Git - chef.git/commit
Do not create temporary planet file when update was not complete
authorJochen Topf <jochen@topf.org>
Mon, 7 Mar 2022 15:05:45 +0000 (16:05 +0100)
committerJochen Topf <jochen@topf.org>
Mon, 7 Mar 2022 15:05:45 +0000 (16:05 +0100)
commit5a720fa766c5fb9ac9886e8551a961eb8764428c
tree9dcd4758d81627310cf5e7b4385aac55003d4a92
parent21eb897d2f6d2807dbea5634df278d05088fad0f
Do not create temporary planet file when update was not complete

When the update of the planet file was not complete (when
pyosmium-up-to-date returns 1), the resulting planet is nevertheless
usable, so we can keep it instead of creating a temporary one. This way
we use less disk space because there is one fewer copy of the planet
around.
cookbooks/planet/templates/default/planet-update-file.erb