1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

makepkg: split source elements when looking for sigs

Allows renamed .asc/.sig files to be still discovered by makepkg. This
is needed for a package such as PuTTY, which provides abnormally named
sig files (.DSA and .RSA) which are valid input for gpg --verify.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dave Reisner 2011-12-10 23:10:49 -05:00 committed by Dan McGee
parent 1a1f5540a4
commit 5f0df42303

View File

@ -331,10 +331,10 @@ in_array() {
return 1 # Not Found
}
source_has_signatures(){
source_has_signatures() {
local file
for file in "${source[@]}"; do
if [[ $file = *.@(sig?(n)|asc) ]]; then
if [[ ${file%%::*} = *.@(sig?(n)|asc) ]]; then
return 0
fi
done