diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-08-10 22:25:03 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-08-22 14:05:25 +0200 |
commit | 801f7742004139229866b911634679143f2c9404 (patch) | |
tree | 59da3cd387d18e45c4124ac44c631e349ac9df9c | |
parent | 332346d06375c1272bee6dce2c91d31a027fe212 (diff) | |
download | dbscripts-801f7742004139229866b911634679143f2c9404.tar.gz dbscripts-801f7742004139229866b911634679143f2c9404.tar.xz |
Disable automatic trust db check when verifying
Most dbscripts commands are run with user privileges and those won't
have write access to the trust db. Therefore when gpg tries to check it
and write the last check time (or something else) into the file it will
fail and display the following error:
> gpg: trustdb rec 30: write failed (n=-1): Bad file descriptor
> gpg: trustdb: sync failed: Bad file descriptor
To avoid this we tell it not to do automatic checking.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | db-functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db-functions b/db-functions index e0d693b..ab5d93a 100644 --- a/db-functions +++ b/db-functions @@ -460,7 +460,7 @@ check_pkgsig() { local ret=1 local fd="$(mktemp --tmpdir="${WORKDIR}")" - gpg --homedir /etc/pacman.d/gnupg/ --status-file "${fd}" --verify "${signature}" >/dev/null 2>&1 + gpg --no-auto-check-trustdb --homedir /etc/pacman.d/gnupg/ --status-file "${fd}" --verify "${signature}" >/dev/null 2>&1 if grep -q TRUST_FULLY "${fd}"; then ret=0 fi |