Use less error-prone mkdir

main
Simon Quigley 1 week ago
parent aa59b8c6b8
commit 78b77a8c01

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

Loading…
Cancel
Save