summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2021-09-07 23:27:26 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2021-09-08 00:26:14 +0100
commit710c9b49fff4001521dbb61c5df12156ae62f837 (patch)
treee7befa80c8c803d88a82525daba387a99816a7f3
parent29e179f435b70f9b55fd49b14e25bb143bccae8b (diff)
dgit: work around deprecation of GZIP
This makes things slower. But it avoids this warning gzip: warning: GZIP environment variable is deprecated; use an alias or script IMO this deprecation was a bad idea, but the boat has sailed. The new code here is less concurrent (which is bad) but the alternatives are rather more code to set up. Closes: #975624 Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-xdgit7
1 files changed, 4 insertions, 3 deletions
diff --git a/dgit b/dgit
index 283f967..0e457c6 100755
--- a/dgit
+++ b/dgit
@@ -6055,10 +6055,11 @@ END
push @files, $maybe;
}
- my $debtar= srcfn $fakeversion,'.debian.tar.gz';
- runcmd qw(env GZIP=-1n tar -zcf), "./$debtar", qw(-C), $maindir, @files;
+ my $debtar= srcfn $fakeversion,'.debian.tar';
+ runcmd qw(tar -cf), "./$debtar", qw(-C), $maindir, @files;
+ runcmd qw(gzip -1n), "./$debtar";
- $dscaddfile->($debtar);
+ $dscaddfile->("$debtar.gz");
close $fakedsc or confess "$!";
}