pacman/scripts
Daan De Meyer c7e4f45922 pacman-key: Reduce gpg trustdb checks
Every time we modify gpg's state by signing or revoking a key, gpg
marks the trustdb as stale and rechecks it the next time key_is_lsigned()
or key_is_revoked() is called.

Currently, we alternate calls signing of keys and calling key_is_lsigned()
(idem for revoking) which means that for each key we sign (or revoke), gpg
will check the trustdb once.

To avoid checking the trustb so many times, we can simply do all the
key_is_lsigned() and key_is_revoked() checks upfront. Inbetween read
operations the trustdb is not marked stale and inbetween write operations
the trustdb is also not marked stale. This reduces the amount of trustdb
checks from 50 to 1.

Signed-off-by: Allan McRae <allan@archlinux.org>
2021-09-04 13:43:26 +10:00
..
completion Always enable TotalDownload 2021-04-23 09:43:30 +10:00
libmakepkg libmakepkg: reproducibilty for python packages 2021-08-08 22:49:32 +10:00
po Pull translations from Transifex 2021-05-20 12:33:05 +10:00
.gitignore libmakepkg: install pkg-config file 2019-05-08 12:46:33 +10:00
libmakepkg.pc.in Update urls to not use www. for archlinux.org 2021-04-08 10:14:33 +10:00
makepkg-template.pl.in Update copyright year 2021-03-01 12:22:20 +10:00
makepkg.sh.in makepkg: add tool details to buildinfo to aid determining flags 2021-04-23 09:07:40 +10:00
meson.build meson: make non-symlink scripts install for real, and use a better wrapper 2019-11-26 10:49:57 +10:00
pacman-db-upgrade.sh.in Update copyright year 2021-03-01 12:22:20 +10:00
pacman-key.sh.in pacman-key: Reduce gpg trustdb checks 2021-09-04 13:43:26 +10:00
repo-add.sh.in Update copyright year 2021-03-01 12:22:20 +10:00
wrapper.sh.in Update copyright year 2021-03-01 12:22:20 +10:00