Add ability to download images
This patch extends the ability to download files from Koji to image building phases too. There is no integrity checking for the downloaded images. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
631bb01d8f
commit
bf3e9bc53a
4 changed files with 12 additions and 5 deletions
|
|
@ -228,8 +228,11 @@ class RunOSBuildThread(WorkerThread):
|
|||
|
||||
image_dest = os.path.join(image_dir, archive["filename"])
|
||||
|
||||
src_file = os.path.join(
|
||||
koji.koji_module.pathinfo.imagebuild(build_info), archive["filename"]
|
||||
src_file = compose.koji_downloader.get_file(
|
||||
os.path.join(
|
||||
koji.koji_module.pathinfo.imagebuild(build_info),
|
||||
archive["filename"],
|
||||
),
|
||||
)
|
||||
|
||||
linker.link(src_file, image_dest, link_type=compose.conf["link_type"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue