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