From: Mike Crowe Date: Mon, 15 Jul 2019 12:50:59 +0000 (+0100) Subject: rootfs-postcommands: Cope with empty IMAGE_LINK_NAME in write_image_manifest X-Git-Tag: uninative-2.7~785 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=267697f5e1c931e39fd81dd1b14691e364be64f3;p=openembedded-core.git 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. Signed-off-by: Mike Crowe Signed-off-by: Richard Purdie --- diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass index 89f8efd323..a2fe3dea2b 100644 --- a/meta/classes/rootfs-postcommands.bbclass +++ b/meta/classes/rootfs-postcommands.bbclass @@ -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)