]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake: parse/ConfHandler: Add negative lookahead to spot some quoting problems
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Sep 2012 22:07:28 +0000 (23:07 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 Sep 2012 10:15:04 +0000 (11:15 +0100)
commitb85c30bb7d47dd8e9bea0e11029c0b08466603b0
tree85e0ead90aea5bfb12bdadb87363267f374c5e38
parent649048e5376baeb84a697dc640c90829ccc5796e
bitbake: parse/ConfHandler: Add negative lookahead to spot some quoting problems

Syntax like:

FOO = "bar" # eek"

would result in FOO taking the value 'bar" #eek' which is clearly
not the intention. Whilst our metadata is riddled with mixtures of even
quotes like:

FOO = "d.getVar("X")"

odd numbers of quotes seem rare. This patch adds detection of one odd
quote which we don't have any of in OE-Core so it seems a valid sanity
improvement.

(Bitbake rev: 5f892d9b083550e20e37576070ec7d1a94cc88fe)

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