refresh treeinfo should NOT overwrite by default
This commit is contained in:
parent
0bb3867c6a
commit
d53e0d939d
@ -11,6 +11,7 @@ parser = argparse.ArgumentParser(description="Peridot Sync and Compose")
|
|||||||
|
|
||||||
# All of our options
|
# 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('--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)
|
parser.add_argument('--logger', type=str)
|
||||||
|
|
||||||
# Parse them
|
# Parse them
|
||||||
@ -26,6 +27,7 @@ a = RepoSync(
|
|||||||
rlvars,
|
rlvars,
|
||||||
config,
|
config,
|
||||||
major=major,
|
major=major,
|
||||||
|
refresh_treeinfo=results.overwrite,
|
||||||
logger=results.logger,
|
logger=results.logger,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1243,7 +1243,7 @@ class RepoSync:
|
|||||||
It is rare that this should be called.
|
It is rare that this should be called.
|
||||||
"""
|
"""
|
||||||
sync_root = self.compose_latest_sync
|
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)
|
self.tweak_treeinfo(self.repo, sync_root, self.arch)
|
||||||
|
|
||||||
def run_compose_closeout(self):
|
def run_compose_closeout(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user