diff options
author | Alex Franco <alejandro.franco@linux.intel.com> | 2015-09-24 10:23:16 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-28 12:00:28 +0100 |
commit | 2bbec5645eb686b5623a91bb44f76554471989dd (patch) | |
tree | 6ea3cbfd25e7540666d984059e94ae7a0da47c51 /meta/lib/oe/rootfs.py | |
parent | 4562f3f7713f836e6060a23357ff805c38983390 (diff) | |
download | poky-2bbec5645eb686b5623a91bb44f76554471989dd.tar.gz |
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>
Diffstat (limited to 'meta/lib/oe/rootfs.py')
-rw-r--r-- | meta/lib/oe/rootfs.py | 6 |
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): | |||
595 | 595 | ||
596 | pkg_list = [] | 596 | pkg_list = [] |
597 | 597 | ||
598 | pkgs = self._get_pkgs_postinsts(status_file) | 598 | pkgs = None |
599 | if not self.d.getVar('PACKAGE_INSTALL', True).strip(): | ||
600 | bb.note("Building empty image") | ||
601 | else: | ||
602 | pkgs = self._get_pkgs_postinsts(status_file) | ||
599 | if pkgs: | 603 | if pkgs: |
600 | root = "__packagegroup_postinst__" | 604 | root = "__packagegroup_postinst__" |
601 | pkgs[root] = pkgs.keys() | 605 | pkgs[root] = pkgs.keys() |