mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
image.py: Allow IMAGE_LINK_NAME to be empty
When IMAGE_LINK_NAME is empty, OE will try to create a "blank" link instead of just skipping it. The code checks for "link_name is not None" which will never evaluate to true. Change the test to a simple "if link_name:" so it no longer attempt to create links when the variable is an empty string. (From OE-Core rev: 7f03dd50de76f0b5c3a10c514e920615ffaa846c) Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
3006cb2600
commit
722aa22d15
@@ -194,7 +194,7 @@ class Image(ImageDepGraph):
|
||||
|
||||
os.chdir(deploy_dir)
|
||||
|
||||
if link_name is not None:
|
||||
if link_name:
|
||||
for type in subimages:
|
||||
if os.path.exists(img_name + ".rootfs." + type):
|
||||
dst = link_name + "." + type
|
||||
|
||||
Reference in New Issue
Block a user