summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-19 05:53:07 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-19 05:55:37 +0100
commit7a0cbe6b0e5185aebabedc515b427994bc2a15dc (patch)
treee2f8a6deab25d73fefebc470eb766613c8ba08b3 /bitbake/lib
parent3a6a38e3c60600ac9272d9e73d1bf05c0ae7e3ae (diff)
downloadast2050-yocto-poky-7a0cbe6b0e5185aebabedc515b427994bc2a15dc.zip
ast2050-yocto-poky-7a0cbe6b0e5185aebabedc515b427994bc2a15dc.tar.gz
cooker.py: Fix key expansion issues in showVersions
bitbake -s was not displaying correct version information when the PREFERRED_VERSION string contains other variables. The actual built versions would differ since the providers.py functions were called with expanded keys at this point. This patch expands keys for showVersions bringing everything into sync correctly. [YOCTO #1493] (Bitbake rev: 3a0f2dda3c6de993f08ed50e9d513add9407339c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/cooker.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index ff508f6..9537239 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -244,13 +244,18 @@ class BBCooker:
# Need files parsed
self.updateCache()
+ # Need to ensure data store is expanded
+ localdata = data.createCopy(self.configuration.data)
+ bb.data.update_data(localdata)
+ bb.data.expandKeys(localdata)
+
pkg_pn = self.status.pkg_pn
preferred_versions = {}
latest_versions = {}
# Sort by priority
for pn in pkg_pn:
- (last_ver, last_file, pref_ver, pref_file) = bb.providers.findBestProvider(pn, self.configuration.data, self.status)
+ (last_ver, last_file, pref_ver, pref_file) = bb.providers.findBestProvider(pn, localdata, self.status)
preferred_versions[pn] = (pref_ver, pref_file)
latest_versions[pn] = (last_ver, last_file)
OpenPOWER on IntegriCloud