From nobody Fri Oct 11 16:18:31 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XQBd35Dj9z5Z5N8; Fri, 11 Oct 2024 16:18:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XQBd33z3pz51Sw; Fri, 11 Oct 2024 16:18:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728663511; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QgHYn3zP8VM8JNkp6WvPKirF5f2SieAdqfuGGl63x6A=; b=CXwyW4GUHaohawRrGttdMkfR/nLQj7dO/HA0TlGmGDuSCwd0bVFs9PJq+1DcIdyVKMeRsw JW6tCe8suf6AAqnF0rUQ3rnOZ9YFTspAcbk/1oDAdy9GrVtEFthtKqsStmDPs+F1e0OAgu hbFTHvXrj/K4FSuV5YiM+Q6fHdrMMMZ4iA9Ah+m4xrETF3NxTf/PQDc622w/efn7EappZj a/TPTameTBfYu6uInSL99nd4oOEBuSY+yAuaWQqSz+IUZRPMKDYHWp8afxoNeLShVzwr2x 1c9UVaHryompMFdSV/qhFRXAzg2ewyl4OiDtBlL+5PNT2ynw0hNZZZMnBy2xlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728663511; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QgHYn3zP8VM8JNkp6WvPKirF5f2SieAdqfuGGl63x6A=; b=dC2R3doX0ISO8WCU7bhnNY0+bj6BzzdiMqdsxJQl7cnDtafyZL6fNVprIpv0Osu+Zf3VZ2 69hXjwyAfXq5JbKa1u1nD5QgMTNhgdgLnl1bveQaAqC9QWkLMnTzdERuEGejytlk/qOt1+ vMQ8KUlYt+HxZgKWp+/d4GPNcEOTcSzo6elpdrYH/aLqCvOcHeGYKTbtv9/RxFPiL+MozJ DTxeku4adFm/o3jvwjfKCqB3zBYW7mfJEKcso+H3aW3tMlRlk/0ASFuoW+DzgfQ+mRnyXK tVlqbYHOyR6sx07hrLkJTjpESh/9tS1pjk+9a04RK+/jLIhPu43TXgiNE2wqeA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728663511; a=rsa-sha256; cv=none; b=VnT1JSDAQRo34NDFbXeI+c6VZGoxMMroZ/VRzUtMeA+pgK/GxQOWfhrKDsFWwAn4762EKT 83B0Qe9V6obWUYg1fgUJdrGGnIWjY8nW+X42UoWD1cgExPYcMLZ2cdG9iA/Ame20bepF8y c7qr5A92tLMq6wc0+DcisVFFKHpQT/hn4zqegP/d3CQ/hJYJzp4pB5+6U6f7QpVgJccbAV OZkmn+f2Gr+5CYDVHPnCqcEDhKK9LmhsTkUfJ55bRuFUDebGq7FH8+QIGNr9fDi8rC1xGV FQ2khvtSZxrCm4s+Y+RI1CeX1YUnH3KmbmclO6Ub8GudwyGHGrKu4O0shP9ebw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XQBd32sQZzpKK; Fri, 11 Oct 2024 16:18:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49BGIVQU023975; Fri, 11 Oct 2024 16:18:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49BGIVt1023972; Fri, 11 Oct 2024 16:18:31 GMT (envelope-from git) Date: Fri, 11 Oct 2024 16:18:31 GMT Message-Id: <202410111618.49BGIVt1023972@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 40b58e3183ac - stable/13 - pkg: improve error message List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 40b58e3183ac23dbb14d1be2c35dcef7efb6111d Auto-Submitted: auto-generated The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=40b58e3183ac23dbb14d1be2c35dcef7efb6111d commit 40b58e3183ac23dbb14d1be2c35dcef7efb6111d Author: Ed Maste AuthorDate: 2024-10-07 16:33:12 +0000 Commit: Ed Maste CommitDate: 2024-10-11 16:17:56 +0000 pkg: improve error message Print the complete list of url that have failed PR: 281924 Co-authored-by: Baptiste Daroussin Differential Revision: https://reviews.freebsd.org/D46983 (cherry picked from commit be9243409d6be99f5d7815b6d074a85a6e84f7ce) (cherry picked from commit 2f29060f46138bbfc52c5944825293d598cc68de) --- usr.sbin/pkg/pkg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c index 7867b89e07d4..1915893af283 100644 --- a/usr.sbin/pkg/pkg.c +++ b/usr.sbin/pkg/pkg.c @@ -854,7 +854,11 @@ bootstrap_pkg(bool force, const char *fetchOpts) goto cleanup; fetchfail: - warnx("Error fetching %s: %s", url, fetchLastErrString); + for (int j = 0; bootstrap_names[j] != NULL; j++) { + warnx("Attempted to fetch %s/Latest/%s", packagesite, + bootstrap_names[j]); + } + warnx("Error: %s", fetchLastErrString); if (fetchLastErrCode == FETCH_RESOLV) { fprintf(stderr, "Address resolution failed for %s.\n", packagesite); fprintf(stderr, "Consider changing PACKAGESITE.\n");