Package: git-buildpackage
Version: 0.4.5
Severity: normal
Tags: patch

Hi,

The following (trivial) patch makes git-buildpackage use 'gzip -n' to
avoid leaving gzip timestamps in generated orig tarballs.  This allows
git-buildpackage to build the exact same tarball every time it's called
on the same treeish, and that makes life easier if you work on the same
Git repo from several machines and don't want to lug your orig tarball
around.

Thanks,

diff --git a/git-buildpackage b/git-buildpackage
index 147e98e..8f75655 100755
--- a/git-buildpackage
+++ b/git-buildpackage
@@ -53,7 +53,7 @@ def create_orig(cp, output_dir, treeish):
     prefix = "%s-%s" % (cp['Source'], cp['Upstream-Version'])
 
     pipe = pipes.Template()
-    pipe.append('gzip -c -9',  '--')
+    pipe.append('gzip -c -9 -n',  '--')
     return git_archive_pipe(prefix, pipe, output, treeish)



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to