From c0dad1aefccc9f68a316072e419795342e8f7358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Sun, 15 Aug 2010 20:19:41 +0200 Subject: Catch KeyboardInterrupt --- git-import-dsc | 3 +++ 1 file changed, 3 insertions(+) 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: -- cgit v1.2.3