From bb0cfed422a645cc6ede292024e7456d5bc7f62e Mon Sep 17 00:00:00 2001 From: merspieler Date: Fri, 10 May 2019 09:46:57 +0000 Subject: [PATCH] Move steps to run before build to avoid problems Signed-off-by: merspieler --- scripts/worldbuild.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/worldbuild.py b/scripts/worldbuild.py index 39b2376..e882d96 100755 --- a/scripts/worldbuild.py +++ b/scripts/worldbuild.py @@ -151,13 +151,13 @@ def after_build(name): if os.path.isfile("./scripts/afterbuild-success"): os.system("./scripts/afterbuild-success " + name + " &") - run("rm -rf projects/worldbuild/scenery/*") - run("./clear-cache-files worldbuild") - def prepare(): run("./delete-db worldbuild") run("./create-db worldbuild") + run("rm -rf projects/worldbuild/scenery/*") + run("./clear-cache-files worldbuild") + def run_all(name, w, s, e, n, chunk_size, threads, cont=False): global pbf_path if os.system("ls -l " + pbf_path + name + ".osm.pbf | grep ' 73 ' > /dev/null") != 0: