oe.package_manager: fix use of PACKAGE_EXCLUDE for dpkg

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

(From OE-Core rev: 207f2cc0b0fc53b22e1dedfa26905ab143fb0de6)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Christopher Larson 2014-08-11 09:15:37 -07:00 committed by Richard Purdie
parent 4e3e0df0eb
commit d7fea14b1f
1 changed files with 1 additions and 1 deletions

View File

@ -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"