diff options
author | Chris Conroy <Chris.Conroy@hillcrestlabs.com> | 2009-09-21 16:07:40 -0400 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2009-11-06 15:08:57 +0000 |
commit | 6f036bdb89e0ed581df415c67eb04749618fd01b (patch) | |
tree | 9bdb9594c6486fa33195360f21e6198d07859a66 | |
parent | 53f097ed9f47426dc945c821ae2d6fa162659256 (diff) | |
download | bitbake-6f036bdb89e0ed581df415c67eb04749618fd01b.tar.gz |
providers.py: Fix package sorting order to reflect priorities
I found that the code that sorts packages does not respect the priority
order.
By iterating over sortpkg_pn.keys() instead of pkg_pn.keys(), it
produces the expected order based on the priorities I have set.
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
-rw-r--r-- | lib/bb/providers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/providers.py b/lib/bb/providers.py index bb46f0bf4..0aec44dc9 100644 --- a/lib/bb/providers.py +++ b/lib/bb/providers.py @@ -191,7 +191,7 @@ def _filterProviders(providers, item, cfgData, dataCache): eligible.append(preferred_versions[pn][1]) # Now add latest verisons - for pn in pkg_pn.keys(): + for pn in sortpkg_pn.keys(): if pn in preferred_versions and preferred_versions[pn][1]: continue preferred_versions[pn] = findLatestProvider(pn, cfgData, dataCache, sortpkg_pn[pn][0]) |