summaryrefslogtreecommitdiffstats
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
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):
84 except OSError: 84 except OSError:
85 continue 85 continue
86 86
87 for pkg in pkgdata["PACKAGES"].split(): 87 packages = pkgdata.get("PACKAGES") or ""
88 for pkg in packages.split():
88 pkgmap[pkg] = pn 89 pkgmap[pkg] = pn
89 90
90 return pkgmap 91 return pkgmap