]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake: [parse] Move inherit handling to method
authorHolger Freyther <ich@tamarin.(none)>
Sun, 17 May 2009 11:00:42 +0000 (13:00 +0200)
committerRichard Purdie <rpurdie@linux.intel.com>
Wed, 10 Feb 2010 16:32:28 +0000 (16:32 +0000)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/parse/parse_py/BBHandler.py

index 6cb8d560f2add0e819df14ad5033d63c8e4c7246..47502adc3c2f89f74d4c3c2de3cca7b74a92fccd 100644 (file)
@@ -168,6 +168,11 @@ def handleBBHandlers(m, d):
         data.setVarFlag(h, "handler", 1, d)
     data.setVar('__BBHANDLERS', bbhands, d)
 
+def handleInherit(m, d):
+    files = m.group(1)
+    n = __word__.findall(files)
+    inherit(n, d)
+
 def supports(fn, d):
     return fn[-3:] == ".bb" or fn[-8:] == ".bbclass" or fn[-4:] == ".inc"
 
@@ -376,10 +381,7 @@ def feeder(lineno, s, fn, root, d):
 
     m = __inherit_regexp__.match(s)
     if m:
-
-        files = m.group(1)
-        n = __word__.findall(files)
-        inherit(n, d)
+        handleInherit(m, d)
         return
 
     from bb.parse import ConfHandler