summaryrefslogtreecommitdiff
path: root/meta/lib
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-03-16 07:46:14 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-20 17:41:34 +0100
commit54ecf8e3992b8a01c2e5bd16720e1819b71b68bd (patch)
treea15a494318c8e29e6648a9fabe5f28291df3bcc6 /meta/lib
parente6858627ab087f2f25ebbd6c4422eeae35f3b0ac (diff)
downloadopenembedded-core-54ecf8e3992b8a01c2e5bd16720e1819b71b68bd.tar.gz
openembedded-core-54ecf8e3992b8a01c2e5bd16720e1819b71b68bd.tar.bz2
openembedded-core-54ecf8e3992b8a01c2e5bd16720e1819b71b68bd.tar.xz
openembedded-core-54ecf8e3992b8a01c2e5bd16720e1819b71b68bd.zip
packagedata: don't choke on empty PACKAGES
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'meta/lib')
-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 7f0a89d28..ee10a233f 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