Move steps to run before build to avoid problems

Signed-off-by: merspieler <merspieler@airmail.cc>
This commit is contained in:
merspieler 2019-05-10 09:46:57 +00:00
parent be35ba5073
commit bb0cfed422

View file

@ -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: