relocatable-python
relocatable-python copied to clipboard
Additional fixes around error codes
- Add --fail to fail on bad url's (404)
- Changing to sys.exit to return proper error code
Previously, when used in any wrapper scripts, the relocatable framework process would exit with error code 0 on bad curl downloads (test with --version=4.0.0). It would continue to download to an html file which then would continue to pkgutil and would fail. Now it exits on bad url return codes.
Even then it would still return 0. Changing to use sys.exit on the exception allows the whole tool to exit with error code 1 and keeps the error on stderr.