Patchwork [2/2] oe.package_manager: fix use of PACKAGE_EXCLUDE for dpkg

login
register
mail settings
Submitter Christopher Larson
Date Aug. 11, 2014, 4:15 p.m.
Message ID <1407773737-16725-2-git-send-email-kergoth@gmail.com>
Download mbox | patch
Permalink /patch/77897/
State Accepted
Commit d7fea14b1fe31b2bc1252b3ed64bd708325a78ad
Headers show

Comments

Christopher Larson - Aug. 11, 2014, 4:15 p.m.
From: Christopher Larson <chris_larson@mentor.com>

It was iterating over the variable character-by-character rather than
word-by-word.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
 meta/lib/oe/package_manager.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index a0984c4..8be3d41 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -1666,7 +1666,7 @@  class DpkgPM(PackageManager):
                 priority += 5
 
             pkg_exclude = self.d.getVar('PACKAGE_EXCLUDE', True) or ""
-            for pkg in pkg_exclude:
+            for pkg in pkg_exclude.split():
                 prefs_file.write(
                     "Package: %s\n"
                     "Pin: release *\n"