diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-08-28 06:19:52 -0400 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-08-28 06:31:27 -0400 |
commit | d46d2da02e3b9d064f3ad78e128e99a7976c6ed1 (patch) | |
tree | 47a7d32ea320946a04ab0803c9dd801cbdf18d10 | |
parent | 3ab0aac42d26fc492ba80dd6fce47c5c60619968 (diff) | |
download | spec-helper-d46d2da02e3b9d064f3ad78e128e99a7976c6ed1.tar spec-helper-d46d2da02e3b9d064f3ad78e128e99a7976c6ed1.tar.gz spec-helper-d46d2da02e3b9d064f3ad78e128e99a7976c6ed1.tar.bz2 spec-helper-d46d2da02e3b9d064f3ad78e128e99a7976c6ed1.tar.xz spec-helper-d46d2da02e3b9d064f3ad78e128e99a7976c6ed1.zip |
drop support for LZMA
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | compress_files | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -1,3 +1,5 @@ + * compress_files: drop support for LZMA + 2015-07-25 Shlomi Fish <shlomif@cpan.org> 0.31.10 * compress_files: More proper handling of $_. Convert as much as possible to lexical variables. diff --git a/compress_files b/compress_files index 4695f64..ca26bbd 100755 --- a/compress_files +++ b/compress_files @@ -10,7 +10,7 @@ use File::Basename; use Fcntl ':mode'; my $ext = $ARGV[0] ||= '.gz'; -die "Unknown extension $ext" unless $ext =~ /^\.(?:gz|bz2|lzma|xz)$/; +die "Unknown extension $ext" unless $ext =~ /^\.(?:gz|bz2|xz)$/; my $buildroot = $ENV{RPM_BUILD_ROOT}; die "No build root defined" unless $buildroot; @@ -93,7 +93,7 @@ sub function { # skip excluded files return if $exclude_pattern && $File::Find::name =~ $exclude_pattern; # skip compressed files - return if $fn =~ /\.(?:gz|bz2|lzma|xz)$/; + return if $fn =~ /\.(?:gz|bz2|xz)$/; # skip particular files return if $fn eq 'dir' || $fn eq 'whatis'; @@ -107,7 +107,6 @@ foreach my $dir (@mandirs) { # uncompress info/man pages using another format uncompress_files('.gz', 'gzip') if $ext ne '.gz'; uncompress_files('.bz2', 'bzip2') if $ext ne '.bz2'; -uncompress_files('.lzma', 'lzma') if $ext ne '.lzma'; uncompress_files('.xz', 'xz') if $ext ne '.xz'; # drop executable bits @@ -120,7 +119,6 @@ if (@files) { my @command = $ext eq '.gz' ? qw(gzip -9f) : $ext eq '.bz2' ? qw(bzip2 -9f) - : $ext eq '.lzma' ? qw(lzma -9f --text) : $ext eq '.xz' ? qw(xz -2ef) : qw() ; |