[Yum-devel] [PATCH] catch pluginexit sanely in utils, too: fixes rh bug https://bugzilla.redhat.com/show_bug.cgi?id=560341

Seth Vidal skvidal at fedoraproject.org
Mon Feb 1 19:35:30 UTC 2010


---
 utils.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/utils.py b/utils.py
index dbbbe13..19a69db 100644
--- a/utils.py
+++ b/utils.py
@@ -195,8 +195,10 @@ class YumUtilBase(YumBaseCli):
         except ValueError, e:
             self.logger.critical(_('Options Error: %s'), e)
             sys.exit(1)
-
-
+        except plugins.PluginYumExit, e:
+            self.logger.critical(_('PluginExit Error: %s'), e)
+            sys.exit(1)
+            
         # update usage in case plugins have added commands
         self._parser.set_usage(self._usage)
         
-- 
1.6.5.2



More information about the Yum-devel mailing list