From 710c9b49fff4001521dbb61c5df12156ae62f837 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 7 Sep 2021 23:27:26 +0100 Subject: 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 --- dgit | 7 ++++--- 1 file 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 "$!"; } -- cgit v1.2.3