Use less error-prone mkdir

main
Simon Quigley 7 days ago
parent aa59b8c6b8
commit 78b77a8c01

@ -122,8 +122,7 @@ def process_sources(url):
lintian_output = f"{stderr}\n{stdout}"
output_path = os.path.join(lintian_tmp, source)
if not os.path.exists(output_path):
os.mkdir(output_path)
os.makedirs(output_path, exist_ok=True)
with open(os.path.join(output_path, f"{arch}.txt"), "w") as f:
f.write(lintian_output)

Loading…
Cancel
Save