Page MenuHomeFreeBSD

pkg: Retry the default name for better error if all fail
AbandonedPublic

Authored by emaste on Oct 7 2024, 3:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 3, 7:47 PM
Unknown Object (File)
Nov 25 2024, 5:44 PM
Unknown Object (File)
Nov 18 2024, 7:41 PM
Unknown Object (File)
Nov 17 2024, 6:26 AM
Unknown Object (File)
Nov 17 2024, 6:09 AM
Unknown Object (File)
Nov 12 2024, 3:19 AM
Unknown Object (File)
Nov 10 2024, 1:03 AM
Unknown Object (File)
Oct 13 2024, 2:20 AM
Subscribers
None

Details

Reviewers
bapt
manu
bdrewery
Summary
pkg tries in order pkg.pkg and pkg.txz as bootstrap pkg names.  If both
fail to fetch the URL from the last attempt is printed, which can be
confusing if the error is unrelated to a missing file.  In the PR below
the failing URL was listed as
http://pkg.FreeBSD.org/FreeBSD:14:amd64/latest/Latest/pkg.txz but the
error was EAI_ADDRFAMILY.  Presumably both pkg.pkg and pkg.txz failed
with the same error.

We could cache the URL and error information from the first bootstrap
attempt but it is a bit awkward; instead, just retry the default pkg.pkg
again as the final attempt.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped