From: Alex Franco Date: Thu, 24 Sep 2015 15:23:16 +0000 (-0500) Subject: Empty image:rootfs.py:handle empty PACKAGE_INSTALL X-Git-Tag: 2015-10~246 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=2d5fb43ec647e8445fc8e8a5caba771c0361a539;p=openembedded-core.git 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 Signed-off-by: Ross Burton --- 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()