]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
data_smart: Don't use mutable objects as default args
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Jan 2015 14:35:37 +0000 (14:35 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Jan 2015 22:10:53 +0000 (22:10 +0000)
commit9facf3604759b00e8fe99f929353d46f8b8ba5cb
tree1f5cc5f9fb50a4b06f168e0a6e4868243756b4dc
parent4fea138f7cef53626a40decb96207dbaf9284020
data_smart: Don't use mutable objects as default args

These only have one instance created which means your subsequent datastores
can contain echos of previous ones. Obviously this is not the behaviour
we want/expect. It doesn't affect bitbake too badly as we only have one
datastore, it does massively potentially break our selftests though.

Thanks to Tim Amsell for pointing out the now obvious problem!

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