summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-03-26 11:26:41 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-03-26 11:26:41 +0200
commit31c1ebb69681e9b9b9d17795210f6bbd24ee2381 (patch)
tree35e8688e09229d341ff6b1d65f3b2623b5385bc9
parent08439d5fd18c5b64670aed4f3025216ce52a8bb7 (diff)
Use gpg status-file instead of status-fd
-rw-r--r--db-functions4
1 files changed, 1 insertions, 3 deletions
diff --git a/db-functions b/db-functions
index 3100e31..1b77035 100644
--- a/db-functions
+++ b/db-functions
@@ -471,9 +471,7 @@ check_pkgsig() {
local ret=1
local fd="$(mktemp --tmpdir="${WORKDIR}")"
- exec 4>"${fd}"
- gpg --homedir /etc/pacman.d/gnupg/ --status-fd 4 --verify "${signature}" >/dev/null 2>&1
- exec 4>&-
+ gpg --homedir /etc/pacman.d/gnupg/ --status-file "${fd}" --verify "${signature}" >/dev/null 2>&1
if grep -q TRUST_FULLY "${fd}"; then
ret=0
fi