mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-14 21:35:02 -05:00
pacman-key: avoid use of tempfile in verify_sig
Use --status-fd rather than --status-file to keep this contained in a pipeline. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
This commit is contained in:
parent
f053141c87
commit
ca090e10d2
@ -439,14 +439,10 @@ refresh_keys() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
verify_sig() {
|
verify_sig() {
|
||||||
local fd="$(mktemp)"
|
if ! "${GPG_PACMAN[@]}" --status-fd 1 --verify $SIGNATURE | grep -qE 'TRUST_(FULLY|ULTIMATE)'; then
|
||||||
"${GPG_PACMAN[@]}" --status-file "${fd}" --verify $SIGNATURE
|
|
||||||
if ! grep -qE 'TRUST_(FULLY|ULTIMATE)' "${fd}"; then
|
|
||||||
rm -f "${fd}"
|
|
||||||
error "$(gettext "The signature identified by %s could not be verified.")" "$SIGNATURE"
|
error "$(gettext "The signature identified by %s could not be verified.")" "$SIGNATURE"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
rm -f "${fd}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
updatedb() {
|
updatedb() {
|
||||||
|
Loading…
Reference in New Issue
Block a user