[oe-commits] Chris Larson : packagedata: don't choke on empty PACKAGES

git version control git at git.openembedded.org
Fri May 20 18:08:38 UTC 2011


Module: openembedded-core.git
Branch: master
Commit: 54ecf8e3992b8a01c2e5bd16720e1819b71b68bd
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=54ecf8e3992b8a01c2e5bd16720e1819b71b68bd

Author: Chris Larson <chris_larson at mentor.com>
Date:   Wed Mar 16 07:46:14 2011 -0700

packagedata: don't choke on empty PACKAGES

Signed-off-by: Chris Larson <chris_larson at mentor.com>

---

 meta/lib/oe/packagedata.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/meta/lib/oe/packagedata.py b/meta/lib/oe/packagedata.py
index 7f0a89d..ee10a23 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





More information about the Openembedded-commits mailing list