summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2018-11-25 00:56:12 +0100
committerAndrew Gregory <andrew@archlinux.org>2018-12-23 22:47:18 +0100
commit48a6adee3e63d335ac431ff6a67351988e574b79 (patch)
tree58c01dbd6a72ab8142219680e3870697bec41be5 /lib
parentcfa1e8b5e2b2fdf66fe41c72d04a8bbc23c28027 (diff)
downloadpacman-48a6adee3e63d335ac431ff6a67351988e574b79.tar.gz
pacman-48a6adee3e63d335ac431ff6a67351988e574b79.tar.xz
always allow explicit empty siglevel for sync dbs
An empty siglevel does not do any signature verification which is exactly what we want when compiled without gpg support. This is already allowed in other parts of the codebase and required for the test suite to pass when compiled without gpg support. Fixes: FS#60880 Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org> (cherry picked from commit 61fe73804305a8bbb434cdc245944df5284f1964)
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/be_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c
index 5009a7da..14b97149 100644
--- a/lib/libalpm/be_sync.c
+++ b/lib/libalpm/be_sync.c
@@ -787,7 +787,7 @@ alpm_db_t *_alpm_db_register_sync(alpm_handle_t *handle, const char *treename,
_alpm_log(handle, ALPM_LOG_DEBUG, "registering sync database '%s'\n", treename);
#ifndef HAVE_LIBGPGME
- if(level != ALPM_SIG_USE_DEFAULT) {
+ if(level != 0 && level != ALPM_SIG_USE_DEFAULT) {
RET_ERR(handle, ALPM_ERR_WRONG_ARGS, NULL);
}
#endif