tech-pkg archive

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

Re: Disable pkg_install output during upgrade



* On 2023-05-09 at 11:55 BST, Joerg Sonnenberger wrote:

Am Tue, May 09, 2023 at 10:09:08AM +0100 schrieb Jonathan Perkin:
Our upgrade process is effectively pkg_delete && pkg_add, and this means
that any package that is either upgraded or refreshed will print both
install and deinstall script messages, as well as output MESSAGE files, on
every update.

For pkg_add -u, we can actually be smarter and provide
old and new version to the +INSTALL/+DEINSTALL script, so that it can
itself decide to skip messages. I'm actually against just silencing the
output as we should be able to detect when new config files appear and
notify users, just to name one example.

Yeh that's a good idea, I'll look into that approach at some point.

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


Home | Main Index | Thread Index | Old Index