]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-file-magic-can-be-mixed-case.patch
- fix build with semanage and no other embedded interpreters
[packages/rpm.git] / rpm-file-magic-can-be-mixed-case.patch
CommitLineData
96a34522
JR
1--- rpm-5.4.10/scripts/rpm2cpio~ 2009-03-19 02:01:24.000000000 +0100
2+++ rpm-5.4.10/scripts/rpm2cpio 2012-09-18 23:49:28.261438724 +0200
3@@ -25,13 +25,13 @@
4 EXTRACTOR="dd if=$pkg ibs=$o skip=1"
5
6 COMPRESSION=`($EXTRACTOR |file -) 2>/dev/null`
7-if echo $COMPRESSION |grep -q gzip; then
8+if echo $COMPRESSION |grep -qi gzip; then
9 DECOMPRESSOR=gunzip
10-elif echo $COMPRESSION |grep -q bzip2; then
11+elif echo $COMPRESSION |grep -qi bzip2; then
12 DECOMPRESSOR=bunzip2
13-elif echo $COMPRESSION |grep -q xz; then
14+elif echo $COMPRESSION |grep -qi xz; then
15 DECOMPRESSOR=unxz
16-elif echo $COMPRESSION |grep -q cpio; then
17+elif echo $COMPRESSION |grep -qi cpio; then
18 DECOMPRESSOR=cat
19 else
20 # Most versions of file don't support LZMA, therefore we assume
This page took 0.028458 seconds and 4 git commands to generate.