From 03111ba6237f6391525a3928601e21a962945a0e Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Mon, 25 Jul 2022 03:07:09 -0700 Subject: [PATCH] add skip all function for treeinfo only mods --- iso/empanadas/empanadas/util/dnf_utils.py | 3 ++- iso/empanadas/empanadas/util/iso_utils.py | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/iso/empanadas/empanadas/util/dnf_utils.py b/iso/empanadas/empanadas/util/dnf_utils.py index d9205fe..068c3ef 100644 --- a/iso/empanadas/empanadas/util/dnf_utils.py +++ b/iso/empanadas/empanadas/util/dnf_utils.py @@ -252,7 +252,8 @@ class RepoSync: if self.fullrun and self.refresh_extra_files: 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: Shared.deploy_extra_files(self.extra_files, sync_root, global_work_root, self.log) diff --git a/iso/empanadas/empanadas/util/iso_utils.py b/iso/empanadas/empanadas/util/iso_utils.py index 9701cf3..b236fc1 100644 --- a/iso/empanadas/empanadas/util/iso_utils.py +++ b/iso/empanadas/empanadas/util/iso_utils.py @@ -581,6 +581,13 @@ class IsoBuild: 'os' ) + kspathway = os.path.join( + self.compose_latest_sync, + repo, + arch, + 'kickstart' + ) + src_to_image = os.path.join( self.lorax_work_dir, arch, @@ -614,6 +621,7 @@ class IsoBuild: try: 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: self.log.error('%s already exists??' % repo)