[Yum-devel] [PATCH] debuginfo-install: handle YumBaseError
Zdenek Pavlas
zpavlas at redhat.com
Thu Apr 25 13:01:34 UTC 2013
---
debuginfo-install.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/debuginfo-install.py b/debuginfo-install.py
index 5c1f77d..be2ff2d 100755
--- a/debuginfo-install.py
+++ b/debuginfo-install.py
@@ -53,7 +53,11 @@ class DebugInfoInstall(YumUtilBase):
help="Turn off automatic installation/update of the yum debuginfo plugin")
self.done = set()
- self.main()
+ try:
+ self.main()
+ except yum.Errors.YumBaseError, e:
+ print e
+ sys.exit(1)
def doUtilConfigSetup(self, *args, **kwargs):
""" We override this to get our extra option out. """
--
1.7.11.7
More information about the Yum-devel
mailing list