[pacman-dev] [PATCH 1/2] option_verifysig: Accept non-caps sig levels
Dan McGee
dpmcgee at gmail.com
Thu Jun 2 00:43:45 EDT 2011
On Wed, Jun 1, 2011 at 7:26 PM, Pang Yan Han <pangyanhan at gmail.com> wrote:
> Signed-off-by: Pang Yan Han <pangyanhan at gmail.com>
Signoff from me as the code stands; the other email I wrote earlier
today though may change some of this in the not so distant future.
> ---
> 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