[rhel7-branch 27/29] CmdlineError should exit with a 1

bcl installerbot-noreply at redhat.com
Wed Jun 3 00:36:59 UTC 2015


From: "Brian C. Lane" <bcl at redhat.com>

Tools like livemedia-creator need to know that the exit was due to an
error so call sys.exit with a 1.

Related: rhbz#1102318

(cherry picked from commit a9b4e05574a63ebd35f744991b6a8c21324a96a1)

Related: rhbz#1196721
---
 pyanaconda/exception.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/exception.py b/pyanaconda/exception.py
index c217612..c1cf69c 100644
--- a/pyanaconda/exception.py
+++ b/pyanaconda/exception.py
@@ -145,7 +145,7 @@ def handleException(self, dump_info):
                         # for a few seconds before exiting the installer
                         print(cmdline_error_msg)
                         time.sleep(10)
-                        sys.exit(0)
+                        sys.exit(1)
                     else:
                         print("\nAn unknown error has occured, look at the "
                                "/tmp/anaconda-tb* file(s) for more details")


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/42f01166f440f0be1799c3cd4a0166bd1f67b009


More information about the anaconda-patches mailing list