remove gnuism
authorJoey Hess <joey@kitenet.net>
Thu, 13 May 2010 02:21:32 +0000 (22:21 -0400)
committerJoey Hess <joey@kitenet.net>
Thu, 13 May 2010 02:21:32 +0000 (22:21 -0400)
though pristine-tar still uses cp -a legitimately

pristine-bz2

index f6f16f7f83ebe6209e482d1fa4b71f33eeaea7d1..c0b1245c2b7c19c16cb6764fd0db569504f8cdf6 100755 (executable)
@@ -189,9 +189,10 @@ sub testvariant {
        my ($old, $tmpin, $bzip2_program, @args) = @_;
 
        # some compressors eat the uncompressed file, some
-       # do not; restore as needed
+       # do not; restore as needed. (Note that file name,
+       # mode, mtime do not matter to bzip2.)
        if (! -e $tmpin) {
-               doit("cp", "-a", "$tmpin.bak", "$tmpin");
+               doit("cp", "$tmpin.bak", "$tmpin");
        }
 
        my $new=$tmpin.'.bz2';