summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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