From 30bc1aea18bb7f78e0b9ff15a21576ec857e0482 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Sun, 4 Sep 2022 09:30:02 +0200 Subject: [PATCH] build: correctly clean up outdated imagebuilders Right not the stamp/sha25sums files stay since the wrong path for deleting them is given. This results in jobs to fail and leftover files which cause other jobs to fail. Signed-off-by: Paul Spooren --- asu/build.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/asu/build.py b/asu/build.py index a6e2894c..3464629e 100644 --- a/asu/build.py +++ b/asu/build.py @@ -398,9 +398,8 @@ def download_file(filename: str, dest: str = None): ) if (cache / target_subtarget).exists(): rmtree(cache / target_subtarget) - _, subtarget = target_subtarget.split("/") for suffix in [".stamp", ".sha256sums", ".sha256sums.sig"]: - (cache / subtarget).with_suffix(suffix).unlink() + (cache / target_subtarget).with_suffix(suffix).unlink(missing_ok=True) else: log.debug("Keeping ImageBuilder for %s", target_subtarget)