diff options
author | Dan McGee <dan@archlinux.org> | 2011-08-25 06:19:06 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-25 23:12:49 +0200 |
commit | e1dce078b247142f7db80bf2d338e431df34691e (patch) | |
tree | e6b258950b519b714dfc4bd43da9f141228fadbd /lib/libalpm/be_sync.c | |
parent | 6aa9fdce5ac59f4137567c17043fdd9e73b03518 (diff) | |
download | pacman-e1dce078b247142f7db80bf2d338e431df34691e.tar.gz pacman-e1dce078b247142f7db80bf2d338e431df34691e.tar.xz |
Remove argument from check_pgp_helper
This one wasn't all that necessary as we only used it in one place in
the function, which can be checked easily enough at the call site.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_sync.c')
-rw-r--r-- | lib/libalpm/be_sync.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c index 6e64e5ff..d7c0a749 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -102,7 +102,8 @@ static int sync_db_validate(alpm_db_t *db) if(level & ALPM_SIG_DATABASE) { if(_alpm_check_pgp_helper(db->handle, dbpath, NULL, level & ALPM_SIG_DATABASE_OPTIONAL, level & ALPM_SIG_DATABASE_MARGINAL_OK, - level & ALPM_SIG_DATABASE_UNKNOWN_OK, ALPM_ERR_DB_INVALID_SIG)) { + level & ALPM_SIG_DATABASE_UNKNOWN_OK)) { + db->handle->pm_errno = ALPM_ERR_DB_INVALID_SIG; return 1; } } |