1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-06 21:28:42 +02:00

Return different return code on KeyboardInterrupt

As I haven't found any good source for choice of exit code, I took value
130 found here:

http://tldp.org/LDP/abs/html/exitcodes.html
This commit is contained in:
Tomáš Čech
2016-07-02 19:11:01 +02:00
parent f2faa82ac7
commit 66596c5d0a

View File

@@ -78,7 +78,7 @@ def run(prg, argv=None):
return 1
except KeyboardInterrupt:
print('interrupted!', file=sys.stderr)
return 1
return 130
except oscerr.UserAbort:
print('aborted.', file=sys.stderr)
return 1