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.
Details
Details
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped