summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse/parse_py/ConfHandler.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/parse/parse_py/ConfHandler.py')
-rw-r--r--bitbake/lib/bb/parse/parse_py/ConfHandler.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/ConfHandler.py b/bitbake/lib/bb/parse/parse_py/ConfHandler.py
index 810b6011cf..451e68dd66 100644
--- a/bitbake/lib/bb/parse/parse_py/ConfHandler.py
+++ b/bitbake/lib/bb/parse/parse_py/ConfHandler.py
@@ -125,16 +125,21 @@ def handle(fn, data, include):
125 s = f.readline() 125 s = f.readline()
126 if not s: 126 if not s:
127 break 127 break
128 origlineno = lineno
129 origline = s
128 w = s.strip() 130 w = s.strip()
129 # skip empty lines 131 # skip empty lines
130 if not w: 132 if not w:
131 continue 133 continue
132 s = s.rstrip() 134 s = s.rstrip()
133 while s[-1] == '\\': 135 while s[-1] == '\\':
134 s2 = f.readline().rstrip() 136 line = f.readline()
137 origline += line
138 s2 = line.rstrip()
135 lineno = lineno + 1 139 lineno = lineno + 1
136 if (not s2 or s2 and s2[0] != "#") and s[0] == "#" : 140 if (not s2 or s2 and s2[0] != "#") and s[0] == "#" :
137 bb.fatal("There is a confusing multiline, partially commented expression on line %s of file %s (%s).\nPlease clarify whether this is all a comment or should be parsed." % (lineno, fn, s)) 141 bb.fatal("There is a confusing multiline, partially commented expression starting on line %s of file %s:\n%s\nPlease clarify whether this is all a comment or should be parsed." % (origlineno, fn, origline))
142
138 s = s[:-1] + s2 143 s = s[:-1] + s2
139 # skip comments 144 # skip comments
140 if s[0] == '#': 145 if s[0] == '#':