diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-09-29 12:11:35 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-09-29 12:16:26 +0200 |
commit | 2c7a5c57cce3167e0a75b54f0326fb977e5d0478 (patch) | |
tree | 5d8e662214d4edc3a457d7895052105536ab77a8 /gbp/scripts/import_orig.py | |
parent | 096852c66b5d207a8e37d75011c2c648d62812c9 (diff) |
import-orig: roll back on CTRL-C too
Diffstat (limited to 'gbp/scripts/import_orig.py')
-rw-r--r-- | gbp/scripts/import_orig.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gbp/scripts/import_orig.py b/gbp/scripts/import_orig.py index 43eacd3e..8e3a634e 100644 --- a/gbp/scripts/import_orig.py +++ b/gbp/scripts/import_orig.py @@ -625,6 +625,8 @@ def main(argv): except (gbpc.CommandExecFailed, GitRepositoryError) as err: msg = str(err) or 'Unknown error, please report a bug' raise GbpError("Import of %s failed: %s" % (source.path, msg)) + except KeyboardInterrupt: + raise GbpError("Import of %s failed: aborted by user" % (source.path)) except GbpError as err: if str(err): gbp.log.err(err) |