hooks/patches: accept patches with any .{diff,patch} name.

This commit is contained in:
Juan RP 2014-05-13 13:11:39 +02:00
parent 11ff18210a
commit f664734c7d
1 changed files with 6 additions and 6 deletions

View File

@ -13,21 +13,21 @@ _process_patch() {
cp -f $i $wrksrc
# Try to guess if its a compressed patch.
if $(echo $i|grep -q '.diff.gz'); then
if [[ $f =~ .diff*.gz ]]; then
gunzip $wrksrc/${_patch}
_patch=${_patch%%.gz}
elif $(echo $i|grep -q '.patch.gz'); then
elif [[ $f =~ .patch*.gz ]]; then
gunzip $wrksrc/${_patch}
_patch=${_patch%%.gz}
elif $(echo $i|grep -q '.diff.bz2'); then
elif [[ $f =~ .diff*.bz2 ]]; then
bunzip2 $wrksrc/${_patch}
_patch=${_patch%%.bz2}
elif $(echo $i|grep -q '.patch.bz2'); then
elif [[ $f =~ .patch*.bz2 ]]; then
bunzip2 $wrksrc/${_patch}
_patch=${_patch%%.bz2}
elif $(echo $i|grep -q '.diff'); then
elif [[ $f =~ .diff ]]; then
:
elif $(echo $i|grep -q '.patch'); then
elif [[ $f =~ .patch ]]; then
:
else
msg_warn "$pkgver: unknown patch type: $i.\n"