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:
Rémy Oudompheng 2011-04-21 08:13:05 +02:00 committed by Dan McGee
parent dd7b17aa0a
commit 10b8cd75b3
1 changed files with 0 additions and 7 deletions

View File

@ -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);
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) {
int ret = _alpm_gpgme_checksig(filepath, pgpsig);
if((check_sig == PM_PGP_VERIFY_ALWAYS && ret != 0) ||