mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-12 04:15:06 -05:00
Always process validity value returned by gpgme
Don't force 'never'; you should be checking both the status and validity anyway. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
be72e10015
commit
5a07b75b22
@ -360,27 +360,22 @@ int _alpm_gpgme_checksig(alpm_handle_t *handle, const char *path,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(status == ALPM_SIGSTATUS_VALID
|
switch(gpgsig->validity) {
|
||||||
|| status == ALPM_SIGSTATUS_KEY_EXPIRED) {
|
case GPGME_VALIDITY_ULTIMATE:
|
||||||
switch(gpgsig->validity) {
|
case GPGME_VALIDITY_FULL:
|
||||||
case GPGME_VALIDITY_ULTIMATE:
|
validity = ALPM_SIGVALIDITY_FULL;
|
||||||
case GPGME_VALIDITY_FULL:
|
break;
|
||||||
validity = ALPM_SIGVALIDITY_FULL;
|
case GPGME_VALIDITY_MARGINAL:
|
||||||
break;
|
validity = ALPM_SIGVALIDITY_MARGINAL;
|
||||||
case GPGME_VALIDITY_MARGINAL:
|
break;
|
||||||
validity = ALPM_SIGVALIDITY_MARGINAL;
|
case GPGME_VALIDITY_NEVER:
|
||||||
break;
|
validity = ALPM_SIGVALIDITY_NEVER;
|
||||||
case GPGME_VALIDITY_NEVER:
|
break;
|
||||||
validity = ALPM_SIGVALIDITY_NEVER;
|
case GPGME_VALIDITY_UNKNOWN:
|
||||||
break;
|
case GPGME_VALIDITY_UNDEFINED:
|
||||||
case GPGME_VALIDITY_UNKNOWN:
|
default:
|
||||||
case GPGME_VALIDITY_UNDEFINED:
|
validity = ALPM_SIGVALIDITY_UNKNOWN;
|
||||||
default:
|
break;
|
||||||
validity = ALPM_SIGVALIDITY_UNKNOWN;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
validity = ALPM_SIGVALIDITY_NEVER;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
result->status[sigcount] = status;
|
result->status[sigcount] = status;
|
||||||
|
Loading…
Reference in New Issue
Block a user