From e9d8dd2abf220cc28c7346768516d847b257f532 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 8 Feb 2010 18:50:33 +0100 Subject: bitbake: providers.py: sort eligible providers by DEFAULT_PREFERENCE (Bitbake rev: ee9afccf33b220a21b74fab279925eeb4771249b) Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Richard Purdie --- bitbake/lib/bb/providers.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bitbake') diff --git a/bitbake/lib/bb/providers.py b/bitbake/lib/bb/providers.py index 8617251ca..db944ae48 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 -- cgit v1.2.3