chiark / gitweb /
Split brain: Use GZIP -1n to avoid spurious timestamp
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jul 2016 11:33:51 +0000 (12:33 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jul 2016 16:42:03 +0000 (17:42 +0100)
Otherwise the cache entry's .dsc contains the hash of a fake
debian.tar.gz which has had a timestamp put in it by gzip, defeating
the cache.

dgit

diff --git a/dgit b/dgit
index ed3f526..81c5ff9 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -3055,7 +3055,7 @@ END
     }
 
     my $debtar= srcfn $fakeversion,'.debian.tar.gz';
-    runcmd qw(env GZIP=-1 tar -zcf), "./$debtar", qw(-C ../../..), @files;
+    runcmd qw(env GZIP=-1n tar -zcf), "./$debtar", qw(-C ../../..), @files;
 
     $dscaddfile->($debtar);
     close $fakedsc or die $!;