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]

(From OE-Core rev: 2d5fb43ec647e8445fc8e8a5caba771c0361a539)

Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alex Franco 2015-09-24 10:23:16 -05:00 committed by Richard Purdie
parent 4562f3f771
commit 2bbec5645e
1 changed files with 5 additions and 1 deletions

View File

@ -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()