]> code.ossystems Code Review - openembedded-core.git/commitdiff
package_manager.py: fix installed package list creation for Opkg/Dpkg
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Wed, 19 Feb 2014 10:40:24 +0000 (12:40 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Feb 2014 14:28:04 +0000 (14:28 +0000)
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>
meta/lib/oe/package_manager.py

index 6dc8fbd9e46fbdfdde2ead132db1aad193a7cb4c..a3c0a8eb306e8b3c40569dfa6174e22042e8af20 100644 (file)
@@ -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)