summaryrefslogtreecommitdiff
path: root/db-update
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-10-03 14:50:03 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-10-03 14:50:03 +0200
commita539598c640caa92e2b1967949836d73c5264036 (patch)
treee7c36b47b12e45c6589f89e617989e05126106d5 /db-update
parentb0047186ad33c5ef8bb6560dd9ba4d8a724dabce (diff)
Use pacman-key to check signatures as it now uses a correct exit value
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update2
1 files changed, 1 insertions, 1 deletions
diff --git a/db-update b/db-update
index 8be0d54..caddbe6 100755
--- a/db-update
+++ b/db-update
@@ -35,7 +35,7 @@ for repo in ${repos[@]}; do
if ! check_pkgfile "${pkg}"; then
die "Package ${repo}/${pkg##*/} is not consistent with its meta data"
fi
- if ${REQUIRE_SIGNATURE} && ! check_pkgsig "${pkg}.sig"; then
+ if ${REQUIRE_SIGNATURE} && ! pacman-key -v "${pkg}.sig" >/dev/null 2>&1; then
die "Package ${repo}/${pkg##*/} does not have a valid signature"
fi
if ! check_pkgsvn "${pkg}" "${repo}"; then