From 2221f5b909d2fd3f8ba935dc5336392ece395416 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 9 Apr 2015 19:20:25 -0400 Subject: [PATCH] If sys.exit is called or SystemExit raised, don't display success If sys.exit is called, which raises SystemExit, the finally at the end of the installer was treating it as a successful install and displaying messages to the user. Catch this exception and mark the install as failed to prevent this. https://fedorahosted.org/ipsilon/ticket/66 Signed-off-by: Rob Crittenden Reviewed-by: Patrick Uiterwijk --- ipsilon/install/ipsilon-server-install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ipsilon/install/ipsilon-server-install b/ipsilon/install/ipsilon-server-install index 67877a6..5ab163b 100755 --- a/ipsilon/install/ipsilon-server-install +++ b/ipsilon/install/ipsilon-server-install @@ -413,6 +413,9 @@ if __name__ == '__main__': print 'Installation aborted.' print 'See log file %s for details' % LOGFILE out = 1 + except SystemExit: + out = 1 + raise finally: if out == 0: if 'uninstall' in opts and opts['uninstall'] is True: -- 2.20.1