Skip to content

Commit

Permalink
build: correctly clean up outdated imagebuilders
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
aparcar committed Sep 4, 2022
1 parent 9fead94 commit 30bc1ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions asu/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 30bc1ae

Please sign in to comment.