[pacman-dev] [PATCH 1/2] option_verifysig: Accept non-caps sig levels

Pang Yan Han pangyanhan at gmail.com
Wed Jun 1 20:26:31 EDT 2011


Signed-off-by: Pang Yan Han <pangyanhan at gmail.com>
---
 src/pacman/conf.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/pacman/conf.c b/src/pacman/conf.c
index 370ec51..06c6eca 100644
--- a/src/pacman/conf.c
+++ b/src/pacman/conf.c
@@ -217,11 +217,11 @@ int config_set_arch(const char *arch)
 static pgp_verify_t option_verifysig(const char *value)
 {
 	pgp_verify_t level;
-	if(strcmp(value, "Always") == 0) {
+	if(strcmp(value, "Always") == 0 || strcmp(value, "always") == 0) {
 		level = PM_PGP_VERIFY_ALWAYS;
-	} else if(strcmp(value, "Optional") == 0) {
+	} else if(strcmp(value, "Optional") == 0 || strcmp(value, "optional") == 0) {
 		level = PM_PGP_VERIFY_OPTIONAL;
-	} else if(strcmp(value, "Never") == 0) {
+	} else if(strcmp(value, "Never") == 0 || strcmp(value, "never") == 0) {
 		level = PM_PGP_VERIFY_NEVER;
 	} else {
 		level = PM_PGP_VERIFY_UNKNOWN;
-- 
1.7.5.rc0.101.g3d23c



More information about the pacman-dev mailing list