SHA256
1
0
forked from pool/gzip

- Add support for xz and lzma (bnc#799561 - zgrep silently fails on

LZMA compressed files)

OBS-URL: https://build.opensuse.org/package/show/Base:System/gzip?expand=0&rev=22
This commit is contained in:
Wojtek Dziewięcki
2013-01-31 16:49:11 +00:00
committed by Git OBS Bridge
parent aa667cf72c
commit f911255567
3 changed files with 40 additions and 1 deletions

30
xz_lzma.patch Normal file
View File

@@ -0,0 +1,30 @@
Index: gzip-1.5/zgrep.1
===================================================================
--- gzip-1.5.orig/zgrep.1
+++ gzip-1.5/zgrep.1
@@ -10,7 +10,7 @@ zgrep \- search possibly compressed file
.I Zgrep
invokes
.I grep
-on compressed or gzipped files.
+on compressed, xz'ed, lzma'ed, bzip2'ed or gzipped files.
All options specified are passed directly to
.IR grep .
If no file is specified, then the standard input is decompressed
Index: gzip-1.5/zgrep.in
===================================================================
--- gzip-1.5.orig/zgrep.in
+++ gzip-1.5/zgrep.in
@@ -178,6 +178,12 @@ do
*.bz2)
uncompress=bzip2
;;
+ *.xz)
+ uncompress=xz
+ ;;
+ *.lzma)
+ uncompress=lzma
+ ;;
*)
uncompress=gzip
;;