mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-11 20:05:07 -05:00
handle.c: force sigverify level not to be PM_PGP_VERIFY_UNKNOWN
Signed-off-by: Rémy Oudompheng <remy@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
ada5bc1404
commit
dd7b17aa0a
@ -628,6 +628,7 @@ int SYMEXPORT alpm_option_set_checkspace(int checkspace)
|
|||||||
int SYMEXPORT alpm_option_set_default_sigverify(pgp_verify_t level)
|
int SYMEXPORT alpm_option_set_default_sigverify(pgp_verify_t level)
|
||||||
{
|
{
|
||||||
ASSERT(handle != NULL, RET_ERR(PM_ERR_HANDLE_NULL, -1));
|
ASSERT(handle != NULL, RET_ERR(PM_ERR_HANDLE_NULL, -1));
|
||||||
|
ASSERT(level != PM_PGP_VERIFY_UNKNOWN, RET_ERR(PM_ERR_WRONG_ARGS, -1));
|
||||||
handle->sigverify = level;
|
handle->sigverify = level;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user