[PATCH] After handling a transaction error, quit instead of doing a traceback.
Chris Lumens
clumens at redhat.com
Thu May 30 20:17:47 UTC 2013
---
pyanaconda/packaging/yumpayload.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 6cd223d..4bb6793 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -1584,7 +1584,8 @@ reposdir=%s
log.error("Error running anaconda-yum: %s" % e)
exn = PayloadInstallError(str(e))
if errorHandler.cb(exn) == ERROR_RAISE:
- raise exn
+ progressQ.send_quit(1)
+ sys.exit(1)
finally:
# log the contents of the scriptlet logfile if any
if os.path.exists(script_log):
@@ -1598,7 +1599,8 @@ reposdir=%s
if install_errors:
exn = PayloadInstallError("\n".join(install_errors))
if errorHandler.cb(exn) == ERROR_RAISE:
- raise exn
+ progressQ.send_quit(1)
+ sys.exit(1)
def writeMultiLibConfig(self):
if not self.data.packages.multiLib:
--
1.8.1.2
More information about the anaconda-patches
mailing list