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)