From 286194bf8211db68991be7831e76829c7147829a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 8 Jul 2017 20:14:28 +0100 Subject: [PATCH] dgit: tolerate compressor terminating with SIGPIPE. Closes:#857694. Signed-off-by: Ian Jackson --- debian/changelog | 2 ++ dgit | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index f25c5d49..91bb617e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,6 +8,8 @@ dgit (3.11~) unstable; urgency=medium tree. Closes:#865863. * dgit: rpush: Honour local git config from build host working tree. + * dgit: tolerate compressor terminating with SIGPIPE. + Closes:#857694. * infrastructure: Cope with new git-receive-pack which has quarantine feature: ie, work around #867702. * test suite: Cope with git restricting ext:: protocols. diff --git a/dgit b/dgit index 6f988132..edb24281 100755 --- a/dgit +++ b/dgit @@ -2208,7 +2208,7 @@ sub generate_commits_from_dsc () { !$? or failedcmd @tarcmd; close $input or - (@compr_cmd ? failedcmd @compr_cmd + (@compr_cmd ? ($?==SIGPIPE || failedcmd @compr_cmd) : die $!); # finally, we have the results in "tarball", but maybe # with the wrong permissions -- 2.30.2