* [PATCH] image.py: Allow IMAGE_LINK_NAME to be empty
@ 2015-09-11 17:02 Mike Looijmans
0 siblings, 0 replies; only message in thread
From: Mike Looijmans @ 2015-09-11 17:02 UTC (permalink / raw)
To: openembedded-core; +Cc: Mike Looijmans
From: Mike Looijmans <mike.looijmans@topic.nl>
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.
Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
---
meta/lib/oe/image.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/lib/oe/image.py b/meta/lib/oe/image.py
index 5b77306..2361955 100644
--- a/meta/lib/oe/image.py
+++ b/meta/lib/oe/image.py
@@ -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
--
2.1.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-09-11 17:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-11 17:02 [PATCH] image.py: Allow IMAGE_LINK_NAME to be empty Mike Looijmans
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.