From aec4241af24a1c68dacadb31ae38f05bdccfe799 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Tue, 30 Sep 2014 15:00:32 -0400 Subject: check_keyring: skip keys known to be missing Signed-off-by: Andrew Gregory --- lib/libalpm/sync.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index b0febbe3..9fe4eff5 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -1074,10 +1074,9 @@ static int check_keyring(alpm_handle_t *handle) alpm_list_t *k; for(k = keys; k; k = k->next) { char *key = k->data; - if(_alpm_key_in_keychain(handle, key) == 0) { - if(!alpm_list_find_str(errors, key)) { - errors = alpm_list_add(errors, strdup(key)); - } + if(!alpm_list_find_str(errors, key) && + _alpm_key_in_keychain(handle, key) == 0) { + errors = alpm_list_add(errors, strdup(key)); } } FREELIST(keys); -- cgit v1.2.3-24-g4f1b