live_images: Copy built wrapped rpms from koji into compose.

This commit is contained in:
Tomas Mlcoch 2015-08-25 07:53:23 -04:00 committed by Daniel Mach
parent df1415b3f5
commit d9d9db3e5d
1 changed files with 7 additions and 0 deletions

View File

@ -85,6 +85,7 @@ class LiveImagesPhase(PhaseBase):
"arch": arch,
"variant": variant,
"iso_path": None,
"wrapped_rpms_path": iso_dir,
"build_arch": arch,
"ks_file": ks_file,
"specfile": None,
@ -198,6 +199,12 @@ class CreateLiveImageThread(WorkerThread):
image_path = image_path[0]
shutil.copy2(image_path, cmd["iso_path"])
# copy finished rpm to isos/ (if rpm wrapped ISO was built)
if cmd["specfile"]:
rpm_paths = koji.get_wrapped_rpm_path(output["task_id"])
for rpm_path in rpm_paths:
shutil.copy2(rpm_path, cmd["wrapped_rpms_path"])
# write checksum and manifest
run(cmd["cmd"])