From 11873b70ae346d06da8590f6bd4bfc19577a8840 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 1 Sep 2011 11:42:55 -0500 Subject: makepkg: fix overzealous PGP signature file matching The regex wasn't rooted at the end of the filename, nor was it matching a period/dot before the file extension. The end result was this matched a file named '07_all_sig.patch' which is totally broken. Signed-off-by: Dan McGee --- scripts/makepkg.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index e74e5c81..2f06b9b3 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -341,7 +341,7 @@ in_array() { source_has_signatures(){ local file for file in "${source[@]}"; do - if [[ $file =~ .*(sig|asc) ]]; then + if [[ $file =~ \.(sig|asc)$ ]]; then return 0 fi done @@ -709,7 +709,7 @@ check_pgpsigs() { for file in "${source[@]}"; do file="$(get_filename "$file")" - if [[ ! $file =~ .*(sig|asc) ]]; then + if [[ ! $file =~ \.(sig|asc)$ ]]; then continue fi -- cgit v1.2.3-70-g09d2