live_images: Copy built wrapped rpms from koji into compose.
This commit is contained in:
parent
df1415b3f5
commit
d9d9db3e5d
@ -85,6 +85,7 @@ class LiveImagesPhase(PhaseBase):
|
|||||||
"arch": arch,
|
"arch": arch,
|
||||||
"variant": variant,
|
"variant": variant,
|
||||||
"iso_path": None,
|
"iso_path": None,
|
||||||
|
"wrapped_rpms_path": iso_dir,
|
||||||
"build_arch": arch,
|
"build_arch": arch,
|
||||||
"ks_file": ks_file,
|
"ks_file": ks_file,
|
||||||
"specfile": None,
|
"specfile": None,
|
||||||
@ -198,6 +199,12 @@ class CreateLiveImageThread(WorkerThread):
|
|||||||
image_path = image_path[0]
|
image_path = image_path[0]
|
||||||
shutil.copy2(image_path, cmd["iso_path"])
|
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
|
# write checksum and manifest
|
||||||
run(cmd["cmd"])
|
run(cmd["cmd"])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user