]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake: BBHandler/ConfHandler: Improve multiline comment handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Dec 2012 13:53:32 +0000 (13:53 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Jan 2013 10:55:22 +0000 (10:55 +0000)
commit79c00fabe08b4c210a3bd81cfaffbc47ffdc2e2b
treedffabfe371fab68ecd5550f5a7a0b0ee45d5446f
parent7e3a99949358f4362876df5a82f8aeaae72c3c97
bitbake: BBHandler/ConfHandler: Improve multiline comment handling

Faced with an expression like:

 # Some comment \
 FOO = "bar"

what should bitbake do? Technically, the \ character means its multiline and
currently the code treats this as a continuation of the comment. This can
surprise some people and is not intuitive.

This patch makes bitbake simply error and asks the user to be clearer
about what they mean.

(Bitbake rev: 589d31ce41e019ee6a7cb6527d67bc76c0b6382a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/parse/parse_py/BBHandler.py
lib/bb/parse/parse_py/ConfHandler.py