>>>>> On Thu, 14 Jan 2016, Michał Górny wrote: > On Thu, 14 Jan 2016 07:28:43 -0500 > Rich Freeman <ri...@gentoo.org> wrote:
>> One way to do this (and I'm certainly open to others) is a >> Display-If-Installable header which takes a keyword string and an >> atom (typically a specific PV). The package manager would >> determine if a package with that keyword string and PV would be >> accepted or not based on the user's configuration, and if so >> display the news. > Based on your idea, this is how I'd do it: > 1. 'Display-If-Visible' that enables news items if given atom is > visible for PM (i.e. in repo, with right keywords and not masked). > I would avoid using 'Installable' as that could get confusing wrt > conflicts and so on. I had omitted the Display-If-Visible header (which has been discussed since 2007 at least) deliberately, because we want to get format 2.0 done in a timely manner. The problem with any visibility filtering is that visibility depends on user configuration [1], and I don't know what changes in the package manager would be necessary to make this work correctly and efficiently. For example, how does portage's --autounmask-write option interact with it? Ulrich [1] https://bugs.gentoo.org/show_bug.cgi?id=290038#c9
pgpFIzoHHeYcY.pgp
Description: PGP signature