bitbake: ConfHandler: Improve regexp to fix mis-parsing of += and no whitespace
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 Feb 2013 10:31:12 +0000 (10:31 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 Feb 2013 10:46:26 +0000 (10:46 +0000)
commit689282d3d4cecf6c630ed222398ecb330729fbef
tree1b0c24d36cb7f4b23a3df76ecbf4844cf69a7fa4
parentf7fadd2853ef139bd10bc49cd0ce8a320ef07ffe
bitbake: ConfHandler: Improve regexp to fix mis-parsing of += and no whitespace

If you have:

FOO = "a"
FOO += "b"
FOO+= "c"

The expected result is "a b c" however we were seeing "a b" with the FOO+
variable being assigned the value "c". This isn't the expected result.

We need to make the name part of the variale non-greedy so that any + character
becomes part of the operator. This patch does that. I compared the configuration
in OE-Core before and after the change and only the test case changed.

[YOCTO #3834]

(Bitbake rev: 2cd8d7fd12a646e6516e2c985e6a54121d19eb59)

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