diff options
author | Guido Günther <agx@sigxcpu.org> | 2016-07-03 20:57:24 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2016-07-04 14:09:58 +0200 |
commit | 7a521d4a044cb03645e86d0a687a39a88d6e40a8 (patch) | |
tree | 44acccfedf4437703cbb56750cb50d82e25e3fd1 /gbp/scripts/pq.py | |
parent | 870c901710cc07f3cdb4ca15dbd5eee660e26ca7 (diff) |
buildpackage: Handle Ctrl-C more gracefully
Diffstat (limited to 'gbp/scripts/pq.py')
-rwxr-xr-x | gbp/scripts/pq.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gbp/scripts/pq.py b/gbp/scripts/pq.py index 8f1f4043..1d20ef9b 100755 --- a/gbp/scripts/pq.py +++ b/gbp/scripts/pq.py @@ -418,6 +418,9 @@ def main(argv): apply_single_patch(repo, current, patch, maintainer, options.topic) elif action == "switch": switch_pq(repo, current) + except KeyboardInterrupt: + retval = 1 + gbp.log.err("Interrupted. Aborting.") except CommandExecFailed: retval = 1 except (GbpError, GitRepositoryError) as err: |