[yum-cvs] yum/__init__.py
Jeremy Katz
katzj at linux.duke.edu
Sun Oct 7 17:25:55 UTC 2007
yum/__init__.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 058e4c9547a5273157a30a2f00778c02cbc8cd33
Author: Jeremy Katz <katzj at redhat.com>
Date: Sun Oct 7 13:24:38 2007 -0400
fix infinite loop with no repos enabled
diff --git a/yum/__init__.py b/yum/__init__.py
index effbb64..b5009c0 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -612,8 +612,8 @@ class YumBase(depsolve.Depsolve):
costs = {}
for r in self.repos.listEnabled():
costs[r.cost] = 1
-
- if len(costs.keys()) == 1: # if all of our costs are the same then return
+
+ if len(costs.keys()) <= 1: # if all of our costs are the same then return
return
def _sort_by_cost(a, b):
More information about the Yum-cvs-commits
mailing list