refresh treeinfo should NOT overwrite by default
Some checks failed
Build empanada images for imagefactory / buildx (push) Failing after 5s
Build empanada container images for lorax / buildx (push) Successful in 1s

This commit is contained in:
Louis Abel 2024-11-13 15:06:50 -07:00
parent 0bb3867c6a
commit d53e0d939d
Signed by: label
GPG Key ID: 2A6975660E424560
2 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,7 @@ parser = argparse.ArgumentParser(description="Peridot Sync and Compose")
# All of our options
parser.add_argument('--release', type=str, help="Major Release Version or major-type (eg 9-beta)", required=True)
parser.add_argument('--overwrite', action='store_true', help="Overwrites current treeinfo and discinfo files")
parser.add_argument('--logger', type=str)
# Parse them
@ -26,6 +27,7 @@ a = RepoSync(
rlvars,
config,
major=major,
refresh_treeinfo=results.overwrite,
logger=results.logger,
)

View File

@ -1243,7 +1243,7 @@ class RepoSync:
It is rare that this should be called.
"""
sync_root = self.compose_latest_sync
self.deploy_treeinfo(self.repo, sync_root, self.arch, refresh=True)
self.deploy_treeinfo(self.repo, sync_root, self.arch, refresh=self.refresh_treeinfo)
self.tweak_treeinfo(self.repo, sync_root, self.arch)
def run_compose_closeout(self):