summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse/parse_py/BBHandler.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/parse/parse_py/BBHandler.py')
-rw-r--r--bitbake/lib/bb/parse/parse_py/BBHandler.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py
index 51ad10fb92..31f44f7df3 100644
--- a/bitbake/lib/bb/parse/parse_py/BBHandler.py
+++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py
@@ -27,11 +27,12 @@
27 27
28from __future__ import absolute_import 28from __future__ import absolute_import
29import re, bb, os 29import re, bb, os
30import logging
30import bb.fetch, bb.build, bb.utils 31import bb.fetch, bb.build, bb.utils
31from bb import data 32from bb import data
32 33
33from . import ConfHandler 34from . import ConfHandler
34from .. import resolve_file, ast 35from .. import resolve_file, ast, logger
35from .ConfHandler import include, init 36from .ConfHandler import include, init
36 37
37# For compatibility 38# For compatibility
@@ -76,7 +77,7 @@ def inherit(files, d):
76 file = os.path.join('classes', '%s.bbclass' % file) 77 file = os.path.join('classes', '%s.bbclass' % file)
77 78
78 if not file in __inherit_cache: 79 if not file in __inherit_cache:
79 bb.msg.debug(2, bb.msg.domain.Parsing, "BB %s:%d: inheriting %s" % (fn, lineno, file)) 80 logger.log(logging.DEBUG -1, "BB %s:%d: inheriting %s", fn, lineno, file)
80 __inherit_cache.append( file ) 81 __inherit_cache.append( file )
81 data.setVar('__inherit_cache', __inherit_cache, d) 82 data.setVar('__inherit_cache', __inherit_cache, d)
82 include(fn, file, d, "inherit") 83 include(fn, file, d, "inherit")
@@ -115,9 +116,9 @@ def handle(fn, d, include):
115 116
116 117
117 if include == 0: 118 if include == 0:
118 bb.msg.debug(2, bb.msg.domain.Parsing, "BB " + fn + ": handle(data)") 119 logger.debug(2, "BB %s: handle(data)", fn)
119 else: 120 else:
120 bb.msg.debug(2, bb.msg.domain.Parsing, "BB " + fn + ": handle(data, include)") 121 logger.debug(2, "BB %s: handle(data, include)", fn)
121 122
122 (root, ext) = os.path.splitext(os.path.basename(fn)) 123 (root, ext) = os.path.splitext(os.path.basename(fn))
123 base_name = "%s%s" % (root, ext) 124 base_name = "%s%s" % (root, ext)