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
F124993253: D47303.diff
Sat, Aug 2, 4:06 AM
Unknown Object (File)
Tue, Jul 22, 12:17 PM
Unknown Object (File)
Thu, Jul 10, 12:06 PM
Unknown Object (File)
Tue, Jul 8, 1:12 PM
Unknown Object (File)
Tue, Jul 8, 7:08 AM
Unknown Object (File)
Jun 25 2025, 5:53 PM
Unknown Object (File)
Jun 15 2025, 7:09 PM
Unknown Object (File)
Jun 15 2025, 9:07 AM
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