pristine-gz: Always pass -f to zgz
authorJoey Hess <joey@kodama.kitenet.net>
Fri, 4 Jul 2008 18:29:47 +0000 (14:29 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Fri, 4 Jul 2008 18:29:47 +0000 (14:29 -0400)
to support cases where the gzip header claims that the original input file
had an extension that suggests it was itself already compressed. (Although
it can't really be.) Not doing the same for gzip because -f doesn't cause
it to ignore extensions. See #475778

debian/changelog
pristine-gz

index 3440551..77464da 100644 (file)
@@ -1,3 +1,13 @@
+pristine-tar (0.16) UNRELEASED; urgency=low
+
+  * pristine-gz: Always pass -f to zgz, to support cases where
+    the gzip header claims that the original input file had an extension
+    that suggests it was itself already compressed. (Although it can't really
+    be.) Not doing the same for gzip because -f doesn't cause it to ignore
+    extensions. See #475778
+
+ -- Joey Hess <joeyh@debian.org>  Fri, 04 Jul 2008 14:25:06 -0400
+
 pristine-tar (0.15) unstable; urgency=low
 
   * Fix POD issues. Closes: #484165
index 56097b0..f85a011 100755 (executable)
@@ -226,7 +226,7 @@ sub testvariant {
        }
 
        # try gzipping with the arguments passed
-       doit('zgz', @args, $new);
+       doit('zgz', '-f', @args, $new);
        $new .= '.gz';
        unless (-e $new) {
                die("zgz failed, aborting");