From 78b77a8c011c045de0abd4f4c8ca812333b41491 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Sun, 15 Dec 2024 16:32:50 -0600 Subject: [PATCH] Use less error-prone mkdir --- lintian-ppa | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lintian-ppa b/lintian-ppa index a716ef6..ad82b5c 100755 --- a/lintian-ppa +++ b/lintian-ppa @@ -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)