classes/buildhistory: fix reading of package-specific values from pkgdata
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Thu, 5 Dec 2013 11:11:47 +0000 (11:11 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Dec 2013 14:25:30 +0000 (14:25 +0000)
commitbd12b634a5762e4ac2b5838e5ba7efc075ccaf0c
tree34abc6c3495c4bafb006769b1af1c845f8231765
parentf9bb903d3f6b6b9ac094b1002e75f184a7969659
classes/buildhistory: fix reading of package-specific values from pkgdata

When writing out variable values to pkgdata, if the value has been set
in the datastore with an override for the package, we use the package
name override in the pkgdata key as well; however the recently added
code to read pkgdata in buildhistory.bbclass was just using the override
where we normally expect to have it. However, if a recipe overrides one
of the values that is normally set for the recipe on a per-package basis
(e.g. the external-sourcery-toolchain recipe sets PKGV this way) then
this led to KeyErrors. Re-write the pkgdata loading code to always strip
off the package name override if it is present.

(From OE-Core rev: e40e8e574b3688400a668d3ad76b6cef1920e3e0)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/buildhistory.bbclass