]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
data_smart: Fix unneeded variable manipulation
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Jan 2017 11:28:04 +0000 (11:28 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Jan 2017 14:29:31 +0000 (14:29 +0000)
commit2bc4d35fb32defc59cd6ed1fc87e35924c201a5c
tree7763b8e9ae09df97a66cd29ad8aa2ec6618bc565
parent70e297e5c285ce0a02e9efd3117ff62cdc77ec12
data_smart: Fix unneeded variable manipulation

If was pointed out that if we have:

XXX = " A"
XXX_remove_inactive-override = "YY"

then XXX can become "A" and the leading space can be removed. This is because
the remove override code changes the variable value even when there is no
removals active. In the process it dirties the cache.

We don't really need to do this so tweak the code accordingly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/data_smart.py