diff options
author | Mike Crowe <mac@mcrowe.com> | 2019-07-15 13:50:59 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-16 13:53:17 +0100 |
commit | 3e1938f6d21522569d0aa199cfee51b752222a57 (patch) | |
tree | 9ac4a507907df4611f2047904d65878efca0a320 /meta | |
parent | 63b924872103a53e7f862eb960be3da580366062 (diff) | |
download | poky-3e1938f6d21522569d0aa199cfee51b752222a57.tar.gz |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/rootfs-postcommands.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
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 () { | |||
260 | with open(manifest_name, 'w+') as image_manifest: | 260 | with open(manifest_name, 'w+') as image_manifest: |
261 | image_manifest.write(format_pkg_list(pkgs, "ver")) | 261 | image_manifest.write(format_pkg_list(pkgs, "ver")) |
262 | 262 | ||
263 | if os.path.exists(manifest_name): | 263 | if os.path.exists(manifest_name) and link_name: |
264 | manifest_link = deploy_dir + "/" + link_name + ".manifest" | 264 | manifest_link = deploy_dir + "/" + link_name + ".manifest" |
265 | if os.path.lexists(manifest_link): | 265 | if os.path.lexists(manifest_link): |
266 | os.remove(manifest_link) | 266 | os.remove(manifest_link) |