diff options
author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | 2014-05-07 13:23:35 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-08 13:00:23 +0100 |
commit | 26314886c3712f980ccc589b014a8f1802193b56 (patch) | |
tree | dcfe1a83e40937009045807da89bb00bbf91802f /meta/lib/oe | |
parent | 36cba6e00d76462e4ae314dd2af0b47472835538 (diff) | |
download | openembedded-core-26314886c3712f980ccc589b014a8f1802193b56.tar.gz openembedded-core-26314886c3712f980ccc589b014a8f1802193b56.tar.bz2 openembedded-core-26314886c3712f980ccc589b014a8f1802193b56.zip |
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
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/package_manager.py | 3 |
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): priority += 5 - for pkg in self.d.getVar('PACKAGE_EXCLUDE', True).split(): + pkg_exclude = self.d.getVar('PACKAGE_EXCLUDE', True) or "" + for pkg in pkg_exclude: prefs_file.write( "Package: %s\n" "Pin: release *\n" |