diff options
| -rw-r--r-- | meta/classes/rootfs-postcommands.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass index e184667f67..56e810fd6f 100644 --- a/meta/classes/rootfs-postcommands.bbclass +++ b/meta/classes/rootfs-postcommands.bbclass | |||
| @@ -215,12 +215,15 @@ python write_image_manifest () { | |||
| 215 | link_name = d.getVar('IMAGE_LINK_NAME', True) | 215 | link_name = d.getVar('IMAGE_LINK_NAME', True) |
| 216 | manifest_name = d.getVar('IMAGE_MANIFEST', True) | 216 | manifest_name = d.getVar('IMAGE_MANIFEST', True) |
| 217 | 217 | ||
| 218 | if not manifest_name: | ||
| 219 | return | ||
| 220 | |||
| 218 | pkgs = image_list_installed_packages(d) | 221 | pkgs = image_list_installed_packages(d) |
| 219 | with open(manifest_name, 'w+') as image_manifest: | 222 | with open(manifest_name, 'w+') as image_manifest: |
| 220 | image_manifest.write(format_pkg_list(pkgs, "ver")) | 223 | image_manifest.write(format_pkg_list(pkgs, "ver")) |
| 221 | image_manifest.write("\n") | 224 | image_manifest.write("\n") |
| 222 | 225 | ||
| 223 | if manifest_name is not None and os.path.exists(manifest_name): | 226 | if os.path.exists(manifest_name): |
| 224 | manifest_link = deploy_dir + "/" + link_name + ".manifest" | 227 | manifest_link = deploy_dir + "/" + link_name + ".manifest" |
| 225 | if os.path.exists(manifest_link): | 228 | if os.path.exists(manifest_link): |
| 226 | if d.getVar('RM_OLD_IMAGE', True) == "1" and \ | 229 | if d.getVar('RM_OLD_IMAGE', True) == "1" and \ |
