[oe-commits] Alex Franco : Empty image:rootfs.py:handle empty PACKAGE_INSTALL
git at git.openembedded.org
git at git.openembedded.org
Sat Sep 26 17:14:31 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: 61b2fae24ed0d05a94b9e1d1b463acfffb899c19
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=61b2fae24ed0d05a94b9e1d1b463acfffb899c19
Author: Alex Franco <alejandro.franco at linux.intel.com>
Date: Thu Sep 24 10:23:16 2015 -0500
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 at linux.intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/lib/oe/rootfs.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index 3b53fce..4e81263 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()
More information about the Openembedded-commits
mailing list