Avoid warning messages from rm

Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
fly 2021-04-18 14:18:21 +00:00
parent 79e9102424
commit 9288f775e7

View file

@ -170,7 +170,7 @@ while running:
# If there is an archive, we need to extract it first and remove old data
if os.path.exists(output + "/" + part + "/" + area_major + "/" + area + ".txz"):
run("bash -c 'cd " + tmp_dir + " && tar -xf " + output + "/" + part + "/" + area_major + "/" + area + ".txz && rm " + area + "/*" + name + "*'", shell=True)
run("bash -c 'cd " + tmp_dir + " && tar -xf " + output + "/" + part + "/" + area_major + "/" + area + ".txz && rm -f " + area + "/*" + name + "*'", shell=True)
else:
run("mkdir -p " + tmp_dir + "/" + area, shell=True)