From 6650411925bd107887f973852c7e7f5b2b8c3ae4 Mon Sep 17 00:00:00 2001 From: Jonathan Dieter Date: Fri, 28 Sep 2007 11:59:26 +0300 Subject: Fix a couple of typos that caused yum to hang if certain error paths were hit. Signed-off-by: Jonathan Dieter --- yum-presto/presto.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'yum-presto/presto.py') diff --git a/yum-presto/presto.py b/yum-presto/presto.py index 7828906..0c1355f 100644 --- a/yum-presto/presto.py +++ b/yum-presto/presto.py @@ -216,14 +216,14 @@ def downloadPkgs(conduit, presto): delta['checksum']) except URLGrabError, e: if po.repo.cache: - raise Errors.RepoError, "Caching enabled and local cache for %s doesn't match checksum" %(deltapath,) + raise yum.Errors.RepoError, "Caching enabled and local cache for %s doesn't match checksum" %(deltapath,) else: cursize = os.stat(deltapath)[6] totsize = long(delta['size']) if cursize >= totsize: os.unlink(deltapath) - remote_packages.append( (po, delta) ) + remote_pkgs.append( (po, delta) ) else: # Deltarpm is local and good, put it in the rebuild thread. conduit.info(5, "using local copy of deltarpm for %s" % po) @@ -261,7 +261,7 @@ def downloadPkgs(conduit, presto): checkfunc=checkfunc, text=text, cache=po.repo.cache) - except Errors.RepoError, e: + except yum.Errors.RepoError, e: adderror(po, str(e)) else: queue.put((conduit, po.localpath, po.arch, deltafile)) -- cgit