mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
remove retry check from signature validation
The retry path was removed by
4ccf16dff5
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
This commit is contained in:
parent
04e8048725
commit
e123e04741
@ -1307,14 +1307,8 @@ int _alpm_sync_commit(alpm_handle_t *handle, alpm_list_t **data)
|
|||||||
/* this can only happen maliciously */
|
/* this can only happen maliciously */
|
||||||
total_bytes = total_bytes ? total_bytes : 1;
|
total_bytes = total_bytes ? total_bytes : 1;
|
||||||
|
|
||||||
/* this one is special: -1 is failure, 1 is retry, 0 is success */
|
if(check_validity(handle, total, total_bytes) != 0) {
|
||||||
while(1) {
|
return -1;
|
||||||
int ret = check_validity(handle, total, total_bytes);
|
|
||||||
if(ret == 0) {
|
|
||||||
break;
|
|
||||||
} else if(ret < 0) {
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(trans->flags & ALPM_TRANS_FLAG_DOWNLOADONLY) {
|
if(trans->flags & ALPM_TRANS_FLAG_DOWNLOADONLY) {
|
||||||
|
Loading…
Reference in New Issue
Block a user