[yum-commits] repoquery.py
zpavlas at osuosl.org
zpavlas at osuosl.org
Mon Aug 12 14:05:17 UTC 2013
repoquery.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 0097ffbb3cd225bccec8ad0f92b5e1fd953dfb3d
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date: Mon Aug 12 13:22:27 2013 +0200
repoquery: handle Yum exceptions on .conf setup. BZ 996027
diff --git a/repoquery.py b/repoquery.py
index e85113c..64976ec 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -1410,7 +1410,11 @@ def main(args):
repoq.preconf.debuglevel = initnoise
repoq.preconf.init_plugins = opts.plugins
repoq.preconf.root = opts.installroot
- repoq.conf
+ try:
+ repoq.conf
+ except YumBaseError, e:
+ repoq.logger.error(e)
+ sys.exit(1)
for item in bad_setopt_tm:
msg = "Setopt argument has multiple values: %s"
More information about the Yum-commits
mailing list