[yum-commits] yum-config-manager.py
zpavlas at osuosl.org
zpavlas at osuosl.org
Thu Jan 9 08:47:22 UTC 2014
yum-config-manager.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit edf6e14ec998fef631d80c79335c3f077965a061
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date: Thu Jan 9 09:43:16 2014 +0100
yum-config-manager: Fail grecefully with garbage in *.repo files. BZ 1046161
diff --git a/yum-config-manager.py b/yum-config-manager.py
index 08c17db..bc96b55 100755
--- a/yum-config-manager.py
+++ b/yum-config-manager.py
@@ -124,7 +124,8 @@ group.add_option("--add-repo", default=[], dest='addrepo', action='append',
help='add (and enable) the repo from the specified file or url')
try:
opts = yb.doUtilConfigSetup()
-except yum.Errors.RepoError, e:
+ yb.repos
+except yum.Errors.YumBaseError, e:
logger.error(str(e))
sys.exit(50)
More information about the Yum-commits
mailing list