From: Ian Jackson Date: Sat, 8 Jul 2017 19:14:28 +0000 (+0100) Subject: dgit: tolerate compressor terminating with SIGPIPE. X-Git-Tag: archive/debian/3.11~9 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=286194bf8211db68991be7831e76829c7147829a;p=dgit.git dgit: tolerate compressor terminating with SIGPIPE. Closes:#857694. Signed-off-by: Ian Jackson --- 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