mirror of
https://git.yoctoproject.org/poky
synced 2026-03-11 09:49:41 +01:00
rootfs-postcommands: Cope with empty IMAGE_LINK_NAME in write_image_manifest
Ensure that we don't create a symlink named ".manifest" if IMAGE_LINK_NAME is empty. (From OE-Core rev: 267697f5e1c931e39fd81dd1b14691e364be64f3) Signed-off-by: Mike Crowe <mac@mcrowe.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
63b9248721
commit
3e1938f6d2
@@ -260,7 +260,7 @@ python write_image_manifest () {
|
||||
with open(manifest_name, 'w+') as image_manifest:
|
||||
image_manifest.write(format_pkg_list(pkgs, "ver"))
|
||||
|
||||
if os.path.exists(manifest_name):
|
||||
if os.path.exists(manifest_name) and link_name:
|
||||
manifest_link = deploy_dir + "/" + link_name + ".manifest"
|
||||
if os.path.lexists(manifest_link):
|
||||
os.remove(manifest_link)
|
||||
|
||||
Reference in New Issue
Block a user