diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-02-08 18:50:33 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-02-15 17:03:50 +0000 |
commit | e9d8dd2abf220cc28c7346768516d847b257f532 (patch) | |
tree | 614f7dca16a534570b00f20b13cc3457d9f8aea8 /bitbake/lib/bb/providers.py | |
parent | de7c939a7f15f1800a56261303672fa0e5c740c7 (diff) | |
download | poky-e9d8dd2abf220cc28c7346768516d847b257f532.tar.gz |
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>
Diffstat (limited to 'bitbake/lib/bb/providers.py')
-rw-r--r-- | bitbake/lib/bb/providers.py | 2 |
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): | |||
224 | continue | 224 | continue |
225 | eligible.remove(fn) | 225 | eligible.remove(fn) |
226 | eligible = [fn] + eligible | 226 | eligible = [fn] + eligible |
227 | # sort eligible according to their DEFAULT_PREFERENCE | ||
228 | eligible.sort(lambda a, b: dataCache.pkg_dp[b] - dataCache.pkg_dp[a]) | ||
227 | 229 | ||
228 | return eligible | 230 | return eligible |
229 | 231 | ||