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

git at git.openembedded.org git at git.openembedded.org
Mon Jul 15 13:02:05 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 4b1399a85720da80f88b562e53362fb8b052e704
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):
             os.remove(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