aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/providers.py
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-02-08 18:50:33 +0100
committerChris Larson <clarson@kergoth.com>2010-02-10 14:12:06 -0700
commitee9afccf33b220a21b74fab279925eeb4771249b (patch)
treeccf07e9ec58f8f313528422bac5b3ca270253d81 /lib/bb/providers.py
parent00eaf76fdc32eb515995b47dfa69eb90ca904b37 (diff)
downloadbitbake-ee9afccf33b220a21b74fab279925eeb4771249b.tar.gz
providers.py: sort eligible providers by DEFAULT_PREFERENCE
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'lib/bb/providers.py')
-rw-r--r--lib/bb/providers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/providers.py b/lib/bb/providers.py
index f85fa6f2c..df7d2c6b4 100644
--- a/lib/bb/providers.py
+++ b/lib/bb/providers.py
@@ -224,6 +224,8 @@ def _filterProviders(providers, item, cfgData, dataCache):
continue
eligible.remove(fn)
eligible = [fn] + eligible
+ # sort eligible according to their DEFAULT_PREFERENCE
+ eligible.sort(lambda a, b: dataCache.pkg_dp[b] - dataCache.pkg_dp[a])
return eligible