summaryrefslogtreecommitdiffhomepage
path: root/gbp/scripts/pristine_tar.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-12-25 12:28:28 +0100
committerGuido Günther <agx@sigxcpu.org>2017-12-25 12:28:28 +0100
commit13cd3b4af38342283c962709c0ce777509eb7e6d (patch)
tree904c8d60438805cc34abcf719f599982600e781a /gbp/scripts/pristine_tar.py
parent3003d0778aed0afcfe766d1595348b83e59df616 (diff)
Handle KeyboardInterrupt in pristine_tar, push, rpm_ch and tag
to avoid python exceptions on the console. The other commands handle it already.
Diffstat (limited to 'gbp/scripts/pristine_tar.py')
-rw-r--r--gbp/scripts/pristine_tar.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gbp/scripts/pristine_tar.py b/gbp/scripts/pristine_tar.py
index 24b1bc65..792bcab6 100644
--- a/gbp/scripts/pristine_tar.py
+++ b/gbp/scripts/pristine_tar.py
@@ -71,7 +71,7 @@ def parse_args(argv):
def main(argv):
- ret = 0
+ ret = 1
repo = None
(options, args) = parse_args(argv)
@@ -100,10 +100,12 @@ def main(argv):
repo.create_pristine_tar_commits(upstream_tag,
tarball,
component_tarballs)
+ ret = 0
except (GitRepositoryError, GbpError, CommandExecFailed) as err:
if str(err):
gbp.log.err(err)
- ret = 1
+ except KeyboardInterrupt:
+ gbp.log.err("Interrupted. Aborting.")
if not ret:
comp_msg = (' with additional tarballs for %s'