diff options
Diffstat (limited to 'yum-presto/presto.py')
-rw-r--r-- | yum-presto/presto.py | 6 |
1 files changed, 3 insertions, 3 deletions
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)) |