diff options
author | Guido Günther <agx@sigxcpu.org> | 2010-08-15 20:19:41 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2010-08-15 20:19:41 +0200 |
commit | c0dad1aefccc9f68a316072e419795342e8f7358 (patch) | |
tree | 5ba019a7b441aa2783f07deb44aee3a694bdd077 | |
parent | af3dc21656d7f19297a5115ce478b94a5c19c9cb (diff) | |
download | git-buildpackage-c0dad1aefccc9f68a316072e419795342e8f7358.tar.gz git-buildpackage-c0dad1aefccc9f68a316072e419795342e8f7358.tar.bz2 git-buildpackage-c0dad1aefccc9f68a316072e419795342e8f7358.zip |
Catch KeyboardInterrupt
-rwxr-xr-x | git-import-dsc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git-import-dsc b/git-import-dsc index 8def4ec2..99da9d10 100755 --- a/git-import-dsc +++ b/git-import-dsc @@ -262,6 +262,9 @@ def main(argv): else: print >>sys.stderr, "Warning: Didn't find a diff to apply." repo.force_head(options.debian_branch, hard=True) + except KeyboardInterrupt: + ret = 1 + print >>sys.stderr, "Interrupted. Aborting." except gbpc.CommandExecFailed: ret = 1 except GitRepositoryError, msg: |