chiark / gitweb /
dgit: tolerate compressor terminating with SIGPIPE.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Jul 2017 19:14:28 +0000 (20:14 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Jul 2017 19:14:32 +0000 (20:14 +0100)
Closes:#857694.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
dgit

index f25c5d499d632498ed8a0d130b17337090912af6..91bb617eeed93fe83e27bd6ea3644227b2098895 100644 (file)
@@ -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 6f98813230a8a29db44564cc784bdeaf91e44f29..edb242816306059e7b401880b0a9f9585ad7a527 100755 (executable)
--- 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