/usr/sbin/pkg: don't sleep on fetch failure
PR: 263458
This commit is contained in:
parent
4148dffadd
commit
60b92ba932
@ -236,9 +236,7 @@ fetch_to_fd(const char *url, char *path, const char *fetchOpts)
|
|||||||
--retry;
|
--retry;
|
||||||
if (retry <= 0)
|
if (retry <= 0)
|
||||||
goto fetchfail;
|
goto fetchfail;
|
||||||
if (mirrors == NULL) {
|
if (mirrors != NULL) {
|
||||||
sleep(1);
|
|
||||||
} else {
|
|
||||||
current = current->next;
|
current = current->next;
|
||||||
if (current == NULL)
|
if (current == NULL)
|
||||||
current = mirrors;
|
current = mirrors;
|
||||||
|
Loading…
Reference in New Issue
Block a user