[yum-commits] yum/yumRepo.py
zpavlas at osuosl.org
zpavlas at osuosl.org
Mon Sep 10 06:47:21 UTC 2012
yum/yumRepo.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit f8b79c0ae8e7fbacd08491094df831044b75ddb3
Author: ZdenÄk Pavlas <zpavlas at redhat.com>
Date: Thu Sep 6 16:12:44 2012 +0200
URLGrabError => RepoError, to make skip_if_unavailable work.
diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index 56a665f..b057961 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -196,7 +196,7 @@ class YumPackageSack(packageSack.PackageSack):
db_un_fn = self._check_uncompressed_db_gen(repo,
mydbtype)
if not db_un_fn: # Shouldn't happen?
- raise URLGrabError(-1, 'Check uncompressed DB failed')
+ raise Errors.RepoError, '%s: Check uncompressed DB failed' % repo
dobj = repo.cacheHandler.open_database(db_un_fn)
@@ -210,7 +210,7 @@ class YumPackageSack(packageSack.PackageSack):
gen = mymdtype + '.xml'
ret = misc.repo_gen_decompress(xml, gen, cached=repo.cache)
if not ret:
- raise URLGrabError(-1, 'Decompress DB failed')
+ raise Errors.RepoError, '%s: Decompress DB failed' % repo
xml = ret
# Convert XML => .sqlite
xmldata = repo.repoXML.getData(mymdtype)
More information about the Yum-commits
mailing list