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>
This commit is contained in:
parent
de7c939a7f
commit
e9d8dd2abf
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue