mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
sync.c: remove unnecessary check for PM_PGP_VERIFY_UNKNOWN
The value PM_PGP_VERIFY_UNKNOWN is reserved to error cases, now that the signature verification level defaults to the globally set level. The only error case is when handle == NULL, which is false in the context of _alpm_sync_commit(). Signed-off-by: Rémy Oudompheng <remy@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
dd7b17aa0a
commit
10b8cd75b3
@ -852,13 +852,6 @@ int _alpm_sync_commit(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t **data)
|
|||||||
|
|
||||||
check_sig = _alpm_db_get_sigverify_level(sdb);
|
check_sig = _alpm_db_get_sigverify_level(sdb);
|
||||||
|
|
||||||
if(check_sig == PM_PGP_VERIFY_UNKNOWN) {
|
|
||||||
_alpm_log(PM_LOG_ERROR, _("failed to determine signature verification "
|
|
||||||
"level for database: %s\n"), sdb->treename);
|
|
||||||
pm_errno = PM_ERR_PKG_INVALID;
|
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(check_sig != PM_PGP_VERIFY_NEVER) {
|
if(check_sig != PM_PGP_VERIFY_NEVER) {
|
||||||
int ret = _alpm_gpgme_checksig(filepath, pgpsig);
|
int ret = _alpm_gpgme_checksig(filepath, pgpsig);
|
||||||
if((check_sig == PM_PGP_VERIFY_ALWAYS && ret != 0) ||
|
if((check_sig == PM_PGP_VERIFY_ALWAYS && ret != 0) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user