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 ed3f52622288e921b0c44d1ee31c9f34becbc221..81c5ff91558733cd61ec492f370f61777ae1e49f 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -3055,7 +3055,7 @@ END
     }
 
     my $debtar= srcfn $fakeversion,'.debian.tar.gz';
     }
 
     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 $!;
 
     $dscaddfile->($debtar);
     close $fakedsc or die $!;