tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkgin package repository message (Was: 9.0 is getting old...)



* On 2024-06-08 at 16:26 BST, David Brownlee wrote:

It occurs to me that it would be helpful to provide a way for a binary
package repository to inject some form of message into pkgin users.

This could be used to tell 9.0 and 9.1 users that they need to upgrade
to >= 9.2, or that a repository has stopped being updated and they
need to switch somewhere else, or some critical issue in pkgin

Yeah I like this.

It could be as simple as a text file in the package dir, automatically
checked and downloaded by pkgin, combined with logic to display it
always (bonus points for having pkgin commane line option to stop
showing the message until it changes)

I think what I'd do is have it have similar logic to pkg_summary, so that it is only fetched if the mtime is different to what's in pkgin.db.

Then have it displayed if running on a tty, with a requirement that the user press a key to continue. It is then no longer shown unless it is updated again. That way users are required to interact with it to confirm it has been read, while not breaking automated updates.

I'll take a swing at it next week.

--
Jonathan Perkin   -   mnx.io   -   pkgsrc.smartos.org
Open Source Complete Cloud   www.tritondatacenter.com


Home | Main Index | Thread Index | Old Index