summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-02-08 18:50:33 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-02-15 17:03:50 +0000
commite9d8dd2abf220cc28c7346768516d847b257f532 (patch)
tree614f7dca16a534570b00f20b13cc3457d9f8aea8
parentde7c939a7f15f1800a56261303672fa0e5c740c7 (diff)
downloadopenembedded-core-e9d8dd2abf220cc28c7346768516d847b257f532.tar.gz
openembedded-core-e9d8dd2abf220cc28c7346768516d847b257f532.tar.bz2
openembedded-core-e9d8dd2abf220cc28c7346768516d847b257f532.zip
bitbake: providers.py: sort eligible providers by DEFAULT_PREFERENCE
(Bitbake rev: ee9afccf33b220a21b74fab279925eeb4771249b) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--bitbake/lib/bb/providers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/providers.py b/bitbake/lib/bb/providers.py
index 8617251ca3..db944ae48c 100644
--- a/bitbake/lib/bb/providers.py
+++ b/bitbake/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