]> code.ossystems Code Review - openembedded-core.git/commitdiff
Re-getVar BBCLASSEXTEND after finalise()
authorChris Larson <chris_larson@mentor.com>
Tue, 23 Feb 2010 18:55:43 +0000 (11:55 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 22 Mar 2010 14:56:16 +0000 (14:56 +0000)
This ensures that an anonymous python function is able to manipulate the
BBCLASSEXTEND contents, and, therefore, amend.inc files are able to add to it.

(Bitbake rev: c7d038d404afaf4ce3735af5134163759da6f6ef)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/parse/parse_py/BBHandler.py

index 1ba81886a7664f29ef88aa3acddbcd55f52490ae..ea3478ce3af408b6e1295946148d1dc3752cfce5 100644 (file)
@@ -152,8 +152,7 @@ def handle(fn, d, include):
         classes.remove(__classname__)
     else:
         if include == 0:
-            multi = data.getVar('BBCLASSEXTEND', d, 1)
-            if multi:
+            if data.getVar('BBCLASSEXTEND', d, 1):
                 based = bb.data.createCopy(d)
             else:
                 based = d
@@ -163,7 +162,7 @@ def handle(fn, d, include):
                 bb.data.setVar("__SKIPPED", True, based)
             darray = {"": based}
 
-            for cls in (multi or "").split():
+            for cls in (data.getVar('BBCLASSEXTEND', based, 1) or "").split():
                 pn = data.getVar('PN', d, True)
                 based = bb.data.createCopy(d)
                 data.setVar('PN', pn + '-' + cls, based)