1 |
On Wed, May 24, 2017 at 1:29 PM, Michał Górny <mgorny@g.o> wrote: |
2 |
> On śro, 2017-05-24 at 13:13 -0400, Mike Gilbert wrote: |
3 |
>> Many news items are only relevant when upgrading a package from one |
4 |
>> version to another. For fresh installs, the user does not need to take |
5 |
>> any action. A good example of this is the recent gcc upgrade from 4.9 |
6 |
>> to 5. |
7 |
>> |
8 |
>> In this context, it is often desirable to inform the user of a major |
9 |
>> change in a package before they upgrade it. This would give them time |
10 |
>> to prepare, and allow to skip the upgrade until they are ready. |
11 |
>> |
12 |
>> This is technically possible with the current news item format by |
13 |
>> using a Display-If-Installed header. However, this has a few problems |
14 |
>> depending on how you format the dependency spec. |
15 |
>> |
16 |
>> Display-If-Installed: cat/pkg |
17 |
>> This will be displayed to too many users. |
18 |
>> |
19 |
>> Display-If-Installed: >=cat/pkg-ver |
20 |
>> This will be displayed to users only after they have upgraded. |
21 |
>> |
22 |
>> Display-If-Installed: <cat/pkg-ver |
23 |
>> This targets the right people, but the message will be displayed too |
24 |
>> early for stable users. |
25 |
>> |
26 |
>> I would like to introduce a new header "Display-If-Visible". This |
27 |
>> would restrict display of the news item to users for which the given |
28 |
>> dependency is visible according to their ACCEPT_KEYWORDS and |
29 |
>> package.accept_keywords settings. |
30 |
>> |
31 |
>> Example usage: |
32 |
>> |
33 |
>> Display-If-Installed: <sys-devel/gcc-5 |
34 |
>> Display-If-Visible: >=sys-devel/gcc-5 |
35 |
>> |
36 |
>> Comments? |
37 |
>> |
38 |
> |
39 |
> https://archives.gentoo.org/gentoo-dev/message/7f5ff2c0a844050f846516a6af39bb06 |
40 |
> |
41 |
> (and the replies to that) |
42 |
|
43 |
Thanks for the pointer. I suppose I'll just draft something for the GLEP change. |