summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):
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