summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2014-02-19 12:40:24 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-20 14:28:04 +0000
commiteaa1994ad22730cec8e8c57736915da6b45a416e (patch)
treec759d6cc260c71b41dfa016b6a9deb0a2338d0c8 /meta
parentdb9dd4b4ef9120baccbccae77d9c31f54a6eb9a1 (diff)
downloadopenembedded-core-eaa1994ad22730cec8e8c57736915da6b45a416e.tar.gz
openembedded-core-eaa1994ad22730cec8e8c57736915da6b45a416e.tar.bz2
openembedded-core-eaa1994ad22730cec8e8c57736915da6b45a416e.zip
package_manager.py: fix installed package list creation for Opkg/Dpkg
Small error in the package list creation routine. Buildhistory was supposed to use this but was never called. Hence, it escaped tests... Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oe/package_manager.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 6dc8fbd9e4..a3c0a8eb30 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -1134,7 +1134,8 @@ class OpkgPM(PackageManager):
if format == "file":
tmp_output = ""
- for pkg, pkg_file, pkg_arch in tuple(output.split('\n')):
+ for line in output.split('\n'):
+ pkg, pkg_file, pkg_arch = line.split()
full_path = os.path.join(self.deploy_dir, pkg_arch, pkg_file)
if os.path.exists(full_path):
tmp_output += "%s %s %s\n" % (pkg, full_path, pkg_arch)
@@ -1435,7 +1436,8 @@ class DpkgPM(PackageManager):
if format == "file":
tmp_output = ""
- for pkg, pkg_file, pkg_arch in tuple(output.split('\n')):
+ for line in tuple(output.split('\n')):
+ pkg, pkg_file, pkg_arch = line.split()
full_path = os.path.join(self.deploy_dir, pkg_arch, pkg_file)
if os.path.exists(full_path):
tmp_output += "%s %s %s\n" % (pkg, full_path, pkg_arch)