[pacman-dev] [PATCH 2/4] handle.c: force sigverify level not to be PM_PGP_VERIFY_UNKNOWN
Rémy Oudompheng
remyoudompheng at gmail.com
Thu Apr 21 02:37:44 EDT 2011
There is no sense in setting such a value.
Signed-off-by: Rémy Oudompheng <remy at archlinux.org>
---
lib/libalpm/handle.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c
index 6905ca6..6bc5f27 100644
--- a/lib/libalpm/handle.c
+++ b/lib/libalpm/handle.c
@@ -628,6 +628,7 @@ int SYMEXPORT alpm_option_set_checkspace(int checkspace)
int SYMEXPORT alpm_option_set_default_sigverify(pgp_verify_t level)
{
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;
return 0;
}
--
1.7.4.4
More information about the pacman-dev
mailing list