1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-03-01 01:41:52 -05:00

makepkg: handle pgp signatures with .sign extension

Detached sgnature files with extension .sign are accepted by gnupg.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2011-11-07 14:47:58 +10:00 committed by Dan McGee
parent 601c808b8d
commit e7b56f48d7

View File

@ -334,7 +334,7 @@ in_array() {
source_has_signatures(){
local file
for file in "${source[@]}"; do
if [[ $file = *.@(sig|asc) ]]; then
if [[ $file = *.@(sig?(n)|asc) ]]; then
return 0
fi
done
@ -704,7 +704,7 @@ check_pgpsigs() {
for file in "${source[@]}"; do
file="$(get_filename "$file")"
if [[ ! $file = *.@(sig|asc) ]]; then
if [[ ! $file = *.@(sig?(n)|asc) ]]; then
continue
fi