diff options
author | Alex Franco <alejandro.franco@linux.intel.com> | 2015-08-26 16:57:34 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-29 13:38:05 +0100 |
commit | 9b6bf6a41f630967c92dbc6644542943ff5f2305 (patch) | |
tree | 4b59e00ab785d1958a074072f9f53df92291ee86 /meta/lib/oe/rootfs.py | |
parent | 013f762327bd1477ad4550f4728683f90a340844 (diff) | |
download | poky-9b6bf6a41f630967c92dbc6644542943ff5f2305.tar.gz |
Empty image: package list splitting and iteration
A few short fixes to splitting/iteration done over package lists
in license.bbclass, package_manager.py and rootfs.py.
[YOCTO #7664]
(From OE-Core rev: a902e98c5938f52ec960e0518e0ceaf8f5ee610c)
Signed-off-by: Alex Franco <alejandro.franco@linux.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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index 8c8244c453..c29843b054 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py | |||
@@ -235,7 +235,7 @@ class Rootfs(object): | |||
235 | installed_pkgs_dir = self.d.expand('${WORKDIR}/installed_pkgs.txt') | 235 | installed_pkgs_dir = self.d.expand('${WORKDIR}/installed_pkgs.txt') |
236 | pkgs_to_remove = list() | 236 | pkgs_to_remove = list() |
237 | with open(installed_pkgs_dir, "r+") as installed_pkgs: | 237 | with open(installed_pkgs_dir, "r+") as installed_pkgs: |
238 | pkgs_installed = installed_pkgs.read().split('\n') | 238 | pkgs_installed = installed_pkgs.read().splitlines() |
239 | for pkg_installed in pkgs_installed[:]: | 239 | for pkg_installed in pkgs_installed[:]: |
240 | pkg = pkg_installed.split()[0] | 240 | pkg = pkg_installed.split()[0] |
241 | if pkg in ["update-rc.d", | 241 | if pkg in ["update-rc.d", |