/usr/sbin/pkg: don't sleep on fetch failure

PR:	263458
This commit is contained in:
John Hood 2022-04-21 17:39:14 -04:00 committed by Baptiste Daroussin
parent 4148dffadd
commit 60b92ba932

View File

@ -236,9 +236,7 @@ fetch_to_fd(const char *url, char *path, const char *fetchOpts)
--retry;
if (retry <= 0)
goto fetchfail;
if (mirrors == NULL) {
sleep(1);
} else {
if (mirrors != NULL) {
current = current->next;
if (current == NULL)
current = mirrors;