From patchwork Wed Jun 22 10:18:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v2] classes/native*.bbclass: fix error during parse with bitbake master Date: Wed, 22 Jun 2011 10:18:14 -0000 From: Paul Eggleton X-Patchwork-Id: 6239 Message-Id: <1308737894-5494-1-git-send-email-paul.eggleton@linux.intel.com> To: openembedded-devel@lists.openembedded.org Fixes "AttributeError: 'NoneType' object has no attribute 'split'" during parsing with bitbake master. We should not be calling explode_deps with None as the argument, so ensure the value isn't None. Signed-off-by: Paul Eggleton Acked-by: Andrea Adami --- classes/native.bbclass | 2 +- classes/nativesdk.bbclass | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/native.bbclass b/classes/native.bbclass index 1e7a6ec..6f30471 100644 --- a/classes/native.bbclass +++ b/classes/native.bbclass @@ -115,7 +115,7 @@ python __anonymous () { if "native" in (bb.data.getVar('BBCLASSEXTEND', d, True) or ""): pn = bb.data.getVar("PN", d, True) - depends = bb.data.getVar("DEPENDS_virtclass-native", d, True) + depends = bb.data.getVar("DEPENDS_virtclass-native", d, True) or "" deps = bb.utils.explode_deps(depends) newdeps = [] for dep in deps: diff --git a/classes/nativesdk.bbclass b/classes/nativesdk.bbclass index 6689399..6607abf 100644 --- a/classes/nativesdk.bbclass +++ b/classes/nativesdk.bbclass @@ -58,7 +58,7 @@ OVERRIDES =. "virtclass-nativesdk:" python __anonymous () { pn = bb.data.getVar("PN", d, True) - depends = bb.data.getVar("DEPENDS_virtclass-nativesdk", d, True) + depends = bb.data.getVar("DEPENDS_virtclass-nativesdk", d, True) or "" deps = bb.utils.explode_deps(depends) newdeps = [] for dep in deps: