summaryrefslogtreecommitdiff
path: root/meta/lib
diff options
context:
space:
mode:
authorAlex Franco <alejandro.franco@linux.intel.com>2015-09-24 10:23:16 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-28 11:58:30 +0100
commit2d5fb43ec647e8445fc8e8a5caba771c0361a539 (patch)
tree7d9f3ed200e4ca4ff561c145b1dab0ea9bf9326d /meta/lib
parentab1bb8db62df4246c2ed3a3135d6d71003ee9386 (diff)
downloadopenembedded-core-2d5fb43ec647e8445fc8e8a5caba771c0361a539.tar.gz
openembedded-core-2d5fb43ec647e8445fc8e8a5caba771c0361a539.tar.bz2
openembedded-core-2d5fb43ec647e8445fc8e8a5caba771c0361a539.zip
Empty image:rootfs.py:handle empty PACKAGE_INSTALL
rootfs.py: added a test in DpkgOpkgRootfs which skips the get package post installs step (get_pkgs_postinsts), when PACKAGE_INSTALL is empty. [YOCTO #7664] Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/rootfs.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index 3b53fce4ae..4e81263f17 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -595,7 +595,11 @@ class DpkgOpkgRootfs(Rootfs):
pkg_list = []
- pkgs = self._get_pkgs_postinsts(status_file)
+ pkgs = None
+ if not self.d.getVar('PACKAGE_INSTALL', True).strip():
+ bb.note("Building empty image")
+ else:
+ pkgs = self._get_pkgs_postinsts(status_file)
if pkgs:
root = "__packagegroup_postinst__"
pkgs[root] = pkgs.keys()