From 54ecf8e3992b8a01c2e5bd16720e1819b71b68bd Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Wed, 16 Mar 2011 07:46:14 -0700 Subject: packagedata: don't choke on empty PACKAGES Signed-off-by: Chris Larson --- meta/lib/oe/packagedata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta/lib') 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 -- cgit v1.2.3