mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
Use a more generic regexp when parsing output of gpg(1) in signature verification.
The current way of extracting key trust from output of gpg --verify is not very robust against changes in the format of said output. As a result, pacman-key can return an error even if the signature is actuall good. This change relaxes the regexp when parsing output of gpg. Signed-off-by: Leonid Isaev <leonid.isaev@jila.colorado.edu> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
87082e3f44
commit
892a1076c0
@ -483,7 +483,7 @@ verify_sig() {
|
|||||||
local ret=0
|
local ret=0
|
||||||
for sig; do
|
for sig; do
|
||||||
msg "Checking %s..." "$sig"
|
msg "Checking %s..." "$sig"
|
||||||
if ! "${GPG_PACMAN[@]}" --status-fd 1 --verify "$sig" | grep -qE '^\[GNUPG:\] TRUST_(FULLY|ULTIMATE)$'; then
|
if ! "${GPG_PACMAN[@]}" --status-fd 1 --verify "$sig" | grep -qE '^\[GNUPG:\] TRUST_(FULLY|ULTIMATE).*$'; then
|
||||||
error "$(gettext "The signature identified by %s could not be verified.")" "$sig"
|
error "$(gettext "The signature identified by %s could not be verified.")" "$sig"
|
||||||
ret=1
|
ret=1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user