Page MenuHomeFreeBSD

pkgbase: don't remove the 'latest' symlink until the repo is final
ClosedPublic

Authored by kevans on Oct 28 2024, 4:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 24, 3:19 AM
Unknown Object (File)
Sun, May 24, 3:18 AM
Unknown Object (File)
Mon, May 18, 9:57 AM
Unknown Object (File)
Thu, Apr 30, 6:34 AM
Unknown Object (File)
Apr 21 2026, 9:35 AM
Unknown Object (File)
Apr 17 2026, 11:29 PM
Unknown Object (File)
Apr 16 2026, 9:33 PM
Unknown Object (File)
Apr 14 2026, 1:09 PM
Subscribers

Details

Summary

We can encounter many issues in the pkg-repo(8) process which would
currently leave us with no more 'latest' symlink in the repository. The
main problems with this are that we've now broken a subsequent
update-packages because we can't determine a PKG_VERSION_FROM, but
also we break configured clients that are still expecting to see *some*
repository.

Switch to just replacing the latest symlink entirely after we have
made it past the pkg-repo(8) step so that we only swap over when we have
a finished repository.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable