debian/source/options
author Laurent Peuch <cortex@worlddomination.be>
Mon, 22 Jul 2019 11:21:10 +0200
changeset 12696 eb83daa69495
parent 12642 5722d8c461eb
child 12718 cc55093cc86d
permissions -rw-r--r--
[cubicweb-ctl] respect sys.exit status code when aborting a command When exploring the stack of all calls to a cubicweb-ctl command, it has been discovered than on a KeyboardInterrupt and on a SystemExit exception the base class InstanceCommand (for commands that works on one instance) will always set the return code of cubicweb-ctl to 8: this mean that if another command do a `sys.exit(some_code)` the exit code will be ignored and overwritten by '8'. This behavior is not intuitive, apparently not documented and doesn't seems to have any justification. It also prevent commands from exciting with different return codes which could be a desired behavior in the situation of scripting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12642
5722d8c461eb [pkg] Switch to Debian source format 3.0 (quilt)
Jérémy Bobbio <jeremy.bobbio@irq7.fr>
parents:
diff changeset
     1
extend-diff-ignore = "^(__pkginfo__\.py$|doc/_themes/cubicweb/static/(logo-cubicweb-small\.svg|cubicweb\.ico|logo-cubicweb\.svg)$|cubicweb/(sobjects/test/data/(cubicweb_comment|cubicweb_card)|server/test/data-migractions/(migratedapp/)?(cubicweb_comment|cubicweb_localperms|cubicweb_basket|cubicweb_tag|cubicweb_card|cubicweb_file)|test/data-rewrite/(cubicweb_localperms|cubicweb_card))$|cubicweb\.spec$|setup\.cfg$|cubicweb/misc/cwfs)"