Right now, we have a warning in red for when a package on packages.gentoo.org matches an entry in package.mask to say that it may be removed soon. We may want to do the same for package.deprecated. For example, when going to https://packages.gentoo.org/packages/dev-ruby/sass-listen, I would maybe be shown the package.deprecated message from earlier today I added: """ # Sam James <sam@gentoo.org> (2023-04-07) # No longer supported upstream, fork of dev-ruby/listen. # Please port your package to use dev-ruby/listen instead. dev-ruby/sass-listen """
Deployed in packagestest.gentoo.org. I think in around 2 hours it will rebuild the packages.deprecated index and start showing it.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/sites/soko.git/commit/?id=a46fe499eaee019e46834f9c327e4a3602f05aa3 commit a46fe499eaee019e46834f9c327e4a3602f05aa3 Author: Arthur Zamarin <arthurzam@gentoo.org> AuthorDate: 2023-04-08 07:43:18 +0000 Commit: Arthur Zamarin <arthurzam@gentoo.org> CommitDate: 2023-04-08 07:43:18 +0000 app/packages: show deprecation warning Closes: https://bugs.gentoo.org/903987 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> pkg/app/handler/packages/show.go | 1 + pkg/app/handler/packages/utils.go | 22 ++++++++++++++++++ pkg/models/version.go | 1 + web/templates/packages/components/overview.tmpl | 31 +++++++++++++++++++++++++ 4 files changed, 55 insertions(+) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/sites/soko.git/commit/?id=3f491e2eea87dfd70119e6c55b0bfe6d1fe60d70 commit 3f491e2eea87dfd70119e6c55b0bfe6d1fe60d70 Author: Arthur Zamarin <arthurzam@gentoo.org> AuthorDate: 2023-04-08 07:14:34 +0000 Commit: Arthur Zamarin <arthurzam@gentoo.org> CommitDate: 2023-04-08 07:17:39 +0000 update/repo: add package.deprecated parser & collector Bug: https://bugs.gentoo.org/903987 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> pkg/database/connection.go | 2 + pkg/models/deprecated.go | 19 +++++ pkg/portage/repository/deprecated.go | 145 +++++++++++++++++++++++++++++++++++ pkg/portage/update.go | 4 +- 4 files changed, 169 insertions(+), 1 deletion(-)
Thanks Arthur, that looks brilliant!