add skip all function for treeinfo only mods

This commit is contained in:
Louis Abel 2022-07-25 03:07:09 -07:00
parent 35e3028fce
commit 03111ba623
Signed by untrusted user: label
GPG Key ID: B37E62D143879B36
2 changed files with 10 additions and 1 deletions

View File

@ -252,7 +252,8 @@ class RepoSync:
if self.fullrun and self.refresh_extra_files: if self.fullrun and self.refresh_extra_files:
self.log.warn(Color.WARN + 'A full run implies extra files are also deployed.') self.log.warn(Color.WARN + 'A full run implies extra files are also deployed.')
self.sync(self.repo, sync_root, work_root, log_root, global_work_root, self.arch) if not self.skip_all:
self.sync(self.repo, sync_root, work_root, log_root, global_work_root, self.arch)
if self.fullrun: if self.fullrun:
Shared.deploy_extra_files(self.extra_files, sync_root, global_work_root, self.log) Shared.deploy_extra_files(self.extra_files, sync_root, global_work_root, self.log)

View File

@ -581,6 +581,13 @@ class IsoBuild:
'os' 'os'
) )
kspathway = os.path.join(
self.compose_latest_sync,
repo,
arch,
'kickstart'
)
src_to_image = os.path.join( src_to_image = os.path.join(
self.lorax_work_dir, self.lorax_work_dir,
arch, arch,
@ -614,6 +621,7 @@ class IsoBuild:
try: try:
shutil.copytree(src_to_image, pathway, copy_function=shutil.copy2, dirs_exist_ok=True) shutil.copytree(src_to_image, pathway, copy_function=shutil.copy2, dirs_exist_ok=True)
shutil.copytree(src_to_image, kspathway, copy_function=shutil.copy2, dirs_exist_ok=True)
except: except:
self.log.error('%s already exists??' % repo) self.log.error('%s already exists??' % repo)