summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>2014-05-07 13:23:35 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-08 13:00:34 +0100
commitbc1f98def1d4f86127763bb4fcfe59199acaf5ce (patch)
tree305a1bb614e063258a5450d0f47cef7696d83702 /meta/lib
parentc100f0a3da787cbb47cd86962f07d2051d7ad6a3 (diff)
downloadpoky-bc1f98def1d4f86127763bb4fcfe59199acaf5ce.tar.gz
package_manager: Fix NoneType Object on do_populate_sdk
PACKAGE_EXCLUDE can be not defined or empty, leading to a build error. File: '/var/lib/jenkins/jobs/qt5022-cesium/workspace/repo/yocto/meta/lib/oe/package_manager.py', lineno: 1649, function: _create_configs 1645: "Pin-Priority: %d\n\n" % (arch, priority)) 1646: 1647: priority += 5 1648: *** 1649: for pkg in self.d.getVar('PACKAGE_EXCLUDE', True).split(): 1650: prefs_file.write( 1651: "Package: %s\n" 1652: "Pin: release *\n" 1653: "Pin-Priority: -1\n\n" % pkg) Exception: AttributeError: 'NoneType' object has no attribute 'split' ERROR: Function failed: do_populate_sdk ERROR: Logfile of failure stored in: /var/lib/jenkins/jobs/qt5022-cesium/workspace/build/tmp/work/bobcat_64-poky-linux/meta-toolchain/1.0-r7/temp/log.do_populate_sdk.21363 NOTE: recipe meta-toolchain-1.0-r7: task do_populate_sdk: Failed (From OE-Core rev: 26314886c3712f980ccc589b014a8f1802193b56) Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/package_manager.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 3aff9d89c6..1c64205330 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -1644,7 +1644,8 @@ class DpkgPM(PackageManager):
1644 1644
1645 priority += 5 1645 priority += 5
1646 1646
1647 for pkg in self.d.getVar('PACKAGE_EXCLUDE', True).split(): 1647 pkg_exclude = self.d.getVar('PACKAGE_EXCLUDE', True) or ""
1648 for pkg in pkg_exclude:
1648 prefs_file.write( 1649 prefs_file.write(
1649 "Package: %s\n" 1650 "Package: %s\n"
1650 "Pin: release *\n" 1651 "Pin: release *\n"