[oe-commits] [openembedded-core] 11/22: rootfs-postcommands: Cope with empty IMAGE_LINK_NAME in write_image_manifest

git at git.openembedded.org git at git.openembedded.org
Tue Jul 16 11:18:32 UTC 2019

This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 267697f5e1c931e39fd81dd1b14691e364be64f3
Author: Mike Crowe <mac at mcrowe.com>
AuthorDate: Mon Jul 15 13:50:59 2019 +0100

    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 <mac at mcrowe.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
 meta/classes/rootfs-postcommands.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass
index 89f8efd..a2fe3de 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):

To stop receiving notification emails like this one, please contact
the administrator of this repository.

More information about the Openembedded-commits mailing list