mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-09 13:07:58 -05:00
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 <dan@archlinux.org>
This commit is contained in:
parent
11ab9aa9f5
commit
11873b70ae
@ -341,7 +341,7 @@ in_array() {
|
|||||||
source_has_signatures(){
|
source_has_signatures(){
|
||||||
local file
|
local file
|
||||||
for file in "${source[@]}"; do
|
for file in "${source[@]}"; do
|
||||||
if [[ $file =~ .*(sig|asc) ]]; then
|
if [[ $file =~ \.(sig|asc)$ ]]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -709,7 +709,7 @@ check_pgpsigs() {
|
|||||||
|
|
||||||
for file in "${source[@]}"; do
|
for file in "${source[@]}"; do
|
||||||
file="$(get_filename "$file")"
|
file="$(get_filename "$file")"
|
||||||
if [[ ! $file =~ .*(sig|asc) ]]; then
|
if [[ ! $file =~ \.(sig|asc)$ ]]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user