Skip to content

Commit

Permalink
refresh treeinfo should NOT overwrite by default
Browse files Browse the repository at this point in the history
  • Loading branch information
nazunalika committed Nov 13, 2024
1 parent 0bb3867 commit d53e0d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions iso/empanadas/empanadas/scripts/refresh_all_treeinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

# 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
Expand All @@ -26,6 +27,7 @@
rlvars,
config,
major=major,
refresh_treeinfo=results.overwrite,
logger=results.logger,
)

Expand Down
2 changes: 1 addition & 1 deletion iso/empanadas/empanadas/util/dnf_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ def refresh_compose_treeinfo(self):
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):
Expand Down

0 comments on commit d53e0d9

Please sign in to comment.