diff --git a/iso/empanadas/empanadas/scripts/refresh_all_treeinfo.py b/iso/empanadas/empanadas/scripts/refresh_all_treeinfo.py index 1756532..4418a75 100755 --- a/iso/empanadas/empanadas/scripts/refresh_all_treeinfo.py +++ b/iso/empanadas/empanadas/scripts/refresh_all_treeinfo.py @@ -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, ) diff --git a/iso/empanadas/empanadas/util/dnf_utils.py b/iso/empanadas/empanadas/util/dnf_utils.py index 9c3fdea..9eb63a2 100644 --- a/iso/empanadas/empanadas/util/dnf_utils.py +++ b/iso/empanadas/empanadas/util/dnf_utils.py @@ -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):