]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oe/package_manager.py: OpkgPM, bad recommendation handling change
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Mon, 3 Feb 2014 09:41:45 +0000 (11:41 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Feb 2014 11:50:32 +0000 (11:50 +0000)
The following commit:

rootfs_ipk: Ensure that BAD_RECOMMENDATIONS are honoured for all
architectures

changed the way BAD_RECOMMENDATIONS are handled. Make the change in the
new code too.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
meta/lib/oe/package_manager.py

index 49bc12c745ceacd164f1d216460ff842c1d5af42..969292c0931362a7fc6277113e57dbbc6d04964b 100644 (file)
@@ -1010,12 +1010,10 @@ class OpkgPM(PackageManager):
                     continue
 
                 for line in output.split('\n'):
-                    if line.startswith("Package:") or \
-                            line.startswith("Architecture:") or \
-                            line.startswith("Version:"):
-                        status.write(line)
-
-                status.write("Status: deinstall hold not-installed\n")
+                    if line.startswith("Status:"):
+                        status.write("Status: deinstall hold not-installed\n")
+                    else:
+                        status.write(line + "\n")
 
 
 class DpkgPM(PackageManager):