diff options
author | 2014-10-09 15:31:49 -0700 | |
---|---|---|
committer | 2014-10-16 12:03:50 -0700 | |
commit | 8abb228237ca30e4ecf53febdf3b9952ad0b5188 (patch) | |
tree | 0f7e1c03c23a364eae7714be4c3e6bd1ac578ea2 /bin | |
parent | gkeys: Fix traceback for seed referenced before assignment (diff) | |
download | gentoo-keys-8abb228237ca30e4ecf53febdf3b9952ad0b5188.tar.gz gentoo-keys-8abb228237ca30e4ecf53febdf3b9952ad0b5188.tar.bz2 gentoo-keys-8abb228237ca30e4ecf53febdf3b9952ad0b5188.zip |
gkeys: Make the cli and Actions return True/Flase success
gkeys was not setting exit codes for operations.
All usable actions should now export success/fail and set the correct exit code.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/gkeys | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -47,4 +47,7 @@ if 'ROOT' in os.environ: root = os.environ['ROOT'] main = Main(root=root) -main() +success = main() + +# exit is boolean opposite normal True/False +sys.exit(not success) |