aboutsummaryrefslogtreecommitdiffstats
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 19:07:51 +0100
commitd7735182c112f54bca7ea5b22d65ca7720b2cd65 (patch)
tree2560b83ab975961e523e6a2d80df1d93a9918c7c
parente3d0d9897e45219c3964165666f0ceebff580678 (diff)
downloadpoky-d7735182c112f54bca7ea5b22d65ca7720b2cd65.tar.gz
poky-d7735182c112f54bca7ea5b22d65ca7720b2cd65.tar.bz2
poky-d7735182c112f54bca7ea5b22d65ca7720b2cd65.zip
packagedata: don't choke on empty PACKAGES
(From OE-Core rev: 54ecf8e3992b8a01c2e5bd16720e1819b71b68bd) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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