]> code.ossystems Code Review - openembedded-core.git/commitdiff
Empty image:rootfs.py:handle empty PACKAGE_INSTALL
authorAlex Franco <alejandro.franco@linux.intel.com>
Thu, 24 Sep 2015 15:23:16 +0000 (10:23 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 28 Sep 2015 10:58:30 +0000 (11:58 +0100)
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>
meta/lib/oe/rootfs.py

index 3b53fce4aeee06388c2b13246f6f72f8cfb3ca62..4e81263f1774234fa3326eb648a7596f09d6c81a 100644 (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()