From 9937be206880f57c7bf5dd283dfdfc4d49e847ab Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Tue, 13 May 2014 16:31:00 +0200 Subject: [PATCH] hooks/patches: fix parsing .{diff,patch} name --- common/hooks/post-extract/00-patches.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/hooks/post-extract/00-patches.sh b/common/hooks/post-extract/00-patches.sh index ff9b07afb15..a6cc4afe16b 100644 --- a/common/hooks/post-extract/00-patches.sh +++ b/common/hooks/post-extract/00-patches.sh @@ -13,16 +13,16 @@ _process_patch() { cp -f $i $wrksrc # Try to guess if its a compressed patch. - if [[ $f =~ .diff*.gz ]]; then + if [[ $f =~ .diff.*.gz ]]; then gunzip $wrksrc/${_patch} _patch=${_patch%%.gz} - elif [[ $f =~ .patch*.gz ]]; then + elif [[ $f =~ .patch.*.gz ]]; then gunzip $wrksrc/${_patch} _patch=${_patch%%.gz} - elif [[ $f =~ .diff*.bz2 ]]; then + elif [[ $f =~ .diff.*.bz2 ]]; then bunzip2 $wrksrc/${_patch} _patch=${_patch%%.bz2} - elif [[ $f =~ .patch*.bz2 ]]; then + elif [[ $f =~ .patch.*.bz2 ]]; then bunzip2 $wrksrc/${_patch} _patch=${_patch%%.bz2} elif [[ $f =~ .diff ]]; then