aboutsummaryrefslogtreecommitdiff
path: root/gbp/scripts/import_dscs.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-07-03 20:57:24 +0200
committerGuido Günther <agx@sigxcpu.org>2016-07-04 14:09:58 +0200
commit7a521d4a044cb03645e86d0a687a39a88d6e40a8 (patch)
tree44acccfedf4437703cbb56750cb50d82e25e3fd1 /gbp/scripts/import_dscs.py
parent870c901710cc07f3cdb4ca15dbd5eee660e26ca7 (diff)
buildpackage: Handle Ctrl-C more gracefully
Diffstat (limited to 'gbp/scripts/import_dscs.py')
-rw-r--r--gbp/scripts/import_dscs.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gbp/scripts/import_dscs.py b/gbp/scripts/import_dscs.py
index ea1b610..7e049a9 100644
--- a/gbp/scripts/import_dscs.py
+++ b/gbp/scripts/import_dscs.py
@@ -154,7 +154,9 @@ def main(argv):
for dsc in dscs[1:]:
if importer.importdsc(dsc):
raise GbpError("Failed to import '%s'" % dscs[0].dscfile)
-
+ except KeyboardInterrupt:
+ ret = 1
+ gbp.log.err("Interrupted. Aborting.")
except (GbpError, gbpc.CommandExecFailed, GitRepositoryError) as err:
if str(err):
gbp.log.err(err)