From d9d9db3e5dd2ab72d62ee187d8932c11ddefe63d Mon Sep 17 00:00:00 2001 From: Tomas Mlcoch Date: Tue, 25 Aug 2015 07:53:23 -0400 Subject: [PATCH] live_images: Copy built wrapped rpms from koji into compose. --- pungi/phases/live_images.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pungi/phases/live_images.py b/pungi/phases/live_images.py index 3b61ee12..dfd906d2 100644 --- a/pungi/phases/live_images.py +++ b/pungi/phases/live_images.py @@ -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"])