[Yum-devel] [PATCH 2/3] URLGrabError => RepoError, to make skip_if_unavailable work.
Zdeněk Pavlas
zpavlas at redhat.com
Thu Sep 6 14:53:08 UTC 2012
---
yum/yumRepo.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index 903b010..a60746b 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)
--
1.7.4.4
More information about the Yum-devel
mailing list