1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-12 04:15:06 -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:
Rémy Oudompheng 2011-04-21 08:11:36 +02:00 committed by Dan McGee
parent ada5bc1404
commit dd7b17aa0a

View File

@ -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;
} }