diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-19 05:53:07 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-19 05:56:12 +0100 |
commit | 6ee69ab42580c09f6c3c43bce1ad9669a010a3ca (patch) | |
tree | 6c3c8e3c8a76b35f0b33aa82e59f6efd59958499 /lib | |
parent | 38a598731b49c8a0ba0ede570adc33eb1e848235 (diff) | |
download | bitbake-6ee69ab42580c09f6c3c43bce1ad9669a010a3ca.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]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/cooker.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index a0fcc1500..546a92c7d 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -238,13 +238,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) |