index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2018-11-24 15:56:13 -0800 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2018-11-27 22:48:43 +1000 |
commit | 44cfc09511aa7c67eb09ee5ceec5cf6f23f7f9c9 (patch) | |
tree | 445c5045cddd3972d3d5b3f2d88a8981d3d4ff35 /lib | |
parent | 61fe73804305a8bbb434cdc245944df5284f1964 (diff) |
-rw-r--r-- | lib/libalpm/handle.c | 5 |
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c index be5666dc..f912d2f5 100644 --- a/lib/libalpm/handle.c +++ b/lib/libalpm/handle.c @@ -803,10 +803,13 @@ int SYMEXPORT alpm_option_set_default_siglevel(alpm_handle_t *handle, int level) { CHECK_HANDLE(handle, return -1); + if(level == ALPM_SIG_USE_DEFAULT) { + RET_ERR(handle, ALPM_ERR_WRONG_ARGS, -1); + } #ifdef HAVE_LIBGPGME handle->siglevel = level; #else - if(level != 0 && level != ALPM_SIG_USE_DEFAULT) { + if(level != 0) { RET_ERR(handle, ALPM_ERR_MISSING_CAPABILITY_SIGNATURES, -1); } #endif |