Resolve symlinks to images
Koji started to create relative symlinks to images created in various tasks. We need to check for that and potentially link the actual file. JIRA: COMPOSE-3822 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
e814e1445a
commit
3e263f33f2
@ -243,7 +243,9 @@ class CreateImageBuildThread(WorkerThread):
|
|||||||
|
|
||||||
# let's not change filename of koji outputs
|
# let's not change filename of koji outputs
|
||||||
image_dest = os.path.join(image_dir, os.path.basename(image_info['path']))
|
image_dest = os.path.join(image_dir, os.path.basename(image_info['path']))
|
||||||
linker.link(image_info['path'], image_dest, link_type=cmd["link_type"])
|
|
||||||
|
src_file = os.path.realpath(image_info["path"])
|
||||||
|
linker.link(src_file, image_dest, link_type=cmd["link_type"])
|
||||||
|
|
||||||
# Update image manifest
|
# Update image manifest
|
||||||
img = Image(compose.im)
|
img = Image(compose.im)
|
||||||
|
@ -160,7 +160,9 @@ class LiveMediaThread(WorkerThread):
|
|||||||
|
|
||||||
# let's not change filename of koji outputs
|
# let's not change filename of koji outputs
|
||||||
image_dest = os.path.join(image_dir, os.path.basename(image_info['path']))
|
image_dest = os.path.join(image_dir, os.path.basename(image_info['path']))
|
||||||
linker.link(image_info['path'], image_dest, link_type=link_type)
|
|
||||||
|
src_file = os.path.realpath(image_info["path"])
|
||||||
|
linker.link(src_file, image_dest, link_type=link_type)
|
||||||
|
|
||||||
# Update image manifest
|
# Update image manifest
|
||||||
img = Image(compose.im)
|
img = Image(compose.im)
|
||||||
|
Loading…
Reference in New Issue
Block a user