[yum-git] repoquery.py
Seth Vidal
skvidal at linux.duke.edu
Fri Feb 15 18:15:45 UTC 2008
repoquery.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 8ea7e4d9a30ba02316986a10250a2d5c569a8d24
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Fri Feb 15 13:12:08 2008 -0500
make sure we catch the trace if we're in caching mode
and there is no metadata
thanks to Bill Nottingham for reporting this one.
diff --git a/repoquery.py b/repoquery.py
index e7cdd31..53100f8 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -770,8 +770,11 @@ def main(args):
repo.disable()
else:
repo.enable()
-
- repoq.doRepoSetup()
+ try:
+ repoq.doRepoSetup()
+ except yum.Errors.RepoError, e:
+ repoq.logger.error("Could not setup repo: %s" % (e))
+ sys.exit(50)
for exp in regexs:
if exp.endswith('.src'):
More information about the Yum-cvs-commits
mailing list