Skip to content

Commit

Permalink
build: only rewrite stamp file after a new IB setup
Browse files Browse the repository at this point in the history
No need to rewrite it every time.

Signed-off-by: Paul Spooren <[email protected]>
  • Loading branch information
aparcar committed Sep 4, 2022
1 parent 7129bbd commit 9fead94
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 @@ -182,6 +182,7 @@ def download_file(filename: str, dest: str = None):
if origin_modified != local_modified:
log.debug("New ImageBuilder upstream available")
setup_ib()
stamp_file.write_text(origin_modified)

if not (cache_workdir / ".config.orig").exists():
# backup original configuration to keep default filesystems
Expand All @@ -190,8 +191,6 @@ def download_file(filename: str, dest: str = None):
cache_workdir / ".config.orig",
)

stamp_file.write_text(origin_modified)

info_run = subprocess.run(
["make", "info"], text=True, capture_output=True, cwd=cache_workdir
)
Expand Down

0 comments on commit 9fead94

Please sign in to comment.