aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/providers.py
diff options
context:
space:
mode:
authorChris Conroy <Chris.Conroy@hillcrestlabs.com>2009-09-21 16:07:40 -0400
committerRichard Purdie <rpurdie@rpsys.net>2009-11-06 15:05:22 +0000
commit442aef9f43e640d006681b9100abecc865cab930 (patch)
treef38389060cbc1231377991e198ba914833aab0d9 /lib/bb/providers.py
parent054758a54ac5a2c18944a8f312b03a51c5ab9e8b (diff)
downloadbitbake-442aef9f43e640d006681b9100abecc865cab930.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>
Diffstat (limited to 'lib/bb/providers.py')
-rw-r--r--lib/bb/providers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/providers.py b/lib/bb/providers.py
index 8970fb3be..6c1cf78eb 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])