Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Oct 2022 09:02:20 GMT
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 3cb757615f26 - stable/13 - /usr/sbin/pkg: don't sleep on fetch failure
Message-ID:  <202210120902.29C92Kd1031611@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bapt:

URL: https://cgit.FreeBSD.org/src/commit/?id=3cb757615f26c5a486b9dde1ba5c3df478ccfe60

commit 3cb757615f26c5a486b9dde1ba5c3df478ccfe60
Author:     John Hood <jhood@niksun.com>
AuthorDate: 2022-04-21 21:39:14 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2022-10-12 09:01:56 +0000

    /usr/sbin/pkg: don't sleep on fetch failure
    
    PR:     263458
    (cherry picked from commit 60b92ba9323c2dd249ba3a3349b207c2d0b9d212)
---
 usr.sbin/pkg/pkg.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c
index 7c5e6ebc6e9c..f3c338c6961e 100644
--- a/usr.sbin/pkg/pkg.c
+++ b/usr.sbin/pkg/pkg.c
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210120902.29C92Kd1031611>