[yum-git] yum/__init__.py
Seth Vidal
skvidal at linux.duke.edu
Fri Mar 28 13:49:10 UTC 2008
yum/__init__.py | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
New commits:
commit e07211b1695eb166c982384ff0dfb090f5cb5bbe
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Fri Mar 28 09:48:27 2008 -0400
dump a little duplicated code
diff --git a/yum/__init__.py b/yum/__init__.py
index 48a7da7..e3d3765 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -1042,17 +1042,11 @@ class YumBase(depsolve.Depsolve):
local = po.localPkg()
if os.path.exists(local):
- if not po.verifyLocalPkg():
+ if not self.verifyPkg(local, po, False):
if po.repo.cache:
repo_cached = True
adderror(po, _('package fails checksum but caching is '
'enabled for %s') % po.repo.id)
- else:
- cursize = os.stat(local)[6]
- totsize = long(po.size)
- if cursize >= totsize:
- os.unlink(local)
-
else:
self.verbose_logger.debug(_("using local copy of %s") %(po,))
continue
More information about the Yum-cvs-commits
mailing list