[yum-git] yum/__init__.py
James Antill
james at linux.duke.edu
Tue Apr 22 23:13:17 UTC 2008
yum/__init__.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 09f05e2a6b8c752b110e54fb8f505658bbea71f1
Author: James Antill <james at and.org>
Date: Tue Apr 22 19:13:05 2008 -0400
Grr ... fix stupido
diff --git a/yum/__init__.py b/yum/__init__.py
index efee839..1b5f107 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -1021,14 +1021,14 @@ class YumBase(depsolve.Depsolve):
def downloadPkgs(self, pkglist, callback=None):
- def mediasort(a, b):
+ def mediasort(apo, bpo):
# FIXME: we should probably also use the mediaid; else we
# could conceivably ping-pong between different disc1's
- a = a.getDiscNum()
- b = b.getDiscNum()
+ a = apo.getDiscNum()
+ b = bpo.getDiscNum()
if a is None and b is None:
# Download smallest pkgs first
- return a.size - b.size
+ return apo.size - bpo.size
if a is None:
return -1
if b is None:
More information about the Yum-cvs-commits
mailing list