From a19d5a0da25898d73da2a7c9d31fdbb554cc10f9 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 16 Feb 2010 15:38:55 +0000 Subject: [PATCH] Revert "providers.py: sort eligible providers by DEFAULT_PREFERENCE" This breaks preferred providers functionality This reverts commit ee9afccf33b220a21b74fab279925eeb4771249b. --- lib/bb/providers.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/bb/providers.py b/lib/bb/providers.py index df7d2c6b475..f85fa6f2ce0 100644 --- a/lib/bb/providers.py +++ b/lib/bb/providers.py @@ -224,8 +224,6 @@ 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 -- 2.47.3