public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [RFC] Gentoo news extension: Display-If-Visible
@ 2017-05-24 17:13 Mike Gilbert
  2017-05-24 17:29 ` Michał Górny
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Gilbert @ 2017-05-24 17:13 UTC (permalink / raw
  To: Gentoo Dev

Many news items are only relevant when upgrading a package from one
version to another. For fresh installs, the user does not need to take
any action. A good example of this is the recent gcc upgrade from 4.9
to 5.

In this context, it is often desirable to inform the user of a major
change in a package before they upgrade it. This would give them time
to prepare, and allow to skip the upgrade until they are ready.

This is technically possible with the current news item format by
using a Display-If-Installed header. However, this has a few problems
depending on how you format the dependency spec.

Display-If-Installed: cat/pkg
This will be displayed to too many users.

Display-If-Installed: >=cat/pkg-ver
This will be displayed to users only after they have upgraded.

Display-If-Installed: <cat/pkg-ver
This targets the right people, but the message will be displayed too
early for stable users.

I would like to introduce a new header "Display-If-Visible". This
would restrict display of the news item to users for which the given
dependency is visible according to their ACCEPT_KEYWORDS and
package.accept_keywords settings.

Example usage:

Display-If-Installed: <sys-devel/gcc-5
Display-If-Visible: >=sys-devel/gcc-5

Comments?


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-24 17:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-24 17:13 [gentoo-dev] [RFC] Gentoo news extension: Display-If-Visible Mike Gilbert
2017-05-24 17:29 ` Michał Górny
2017-05-24 17:33   ` Mike Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox