summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-03-16 07:46:14 -0700
committerChris Larson <chris_larson@mentor.com>2011-05-18 13:59:32 -0700
commit4610087f569b2cd8e74595b2947e636ca0b299e9 (patch)
treea4a70e8e499c3bea152d8fb9f54f34d091f077c6
parent84e7e11eba12f9fef7021d09918025751bd0ee2b (diff)
downloadopenembedded-core-contrib-4610087f569b2cd8e74595b2947e636ca0b299e9.tar.gz
openembedded-core-contrib-4610087f569b2cd8e74595b2947e636ca0b299e9.tar.bz2
openembedded-core-contrib-4610087f569b2cd8e74595b2947e636ca0b299e9.zip
packagedata: don't choke on empty PACKAGES
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r--meta/lib/oe/packagedata.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oe/packagedata.py b/meta/lib/oe/packagedata.py
index 7f0a89d282..ee10a233fa 100644
--- a/meta/lib/oe/packagedata.py
+++ b/meta/lib/oe/packagedata.py
@@ -84,7 +84,8 @@ def _pkgmap(d):
except OSError:
continue
- for pkg in pkgdata["PACKAGES"].split():
+ packages = pkgdata.get("PACKAGES") or ""
+ for pkg in packages.split():
pkgmap[pkg] = pn
return pkgmap