1 |
On Sat, Nov 05, 2005 at 10:18:14PM +0900, Jason Stubbs wrote: |
2 |
> > ``Display-If-Installed:`` |
3 |
> > A dependency atom or simple package name (for example, |
4 |
> > ``<dev-lang/php-5_alpha`` or ``net-www/apache``). If the user has the |
5 |
> > package specified installed, the news item should be displayed. |
6 |
> > |
7 |
> > ``Display-If-Keyword:`` |
8 |
> > A keyword [#glep-22]_ name, for example ``mips``. If the user is on the |
9 |
> > arch in question, the news item should be displayed. |
10 |
> > |
11 |
> > ``Display-If-Profile:`` |
12 |
> > A profile path, for example ``default-linux/sparc/sparc64/server``. If |
13 |
> > the user is using the exact profile in question, the news item should be |
14 |
> > displayed. This header may be used to replace ``deprecated`` files in |
15 |
> > the future. |
16 |
> |
17 |
> Isn't keyword just a generalization of profile? Why have both? |
18 |
You would have to specify a common subprofile, and have the code know |
19 |
to dig through the ancestors of a profile. |
20 |
|
21 |
Breaks down when dealing with profiles that lack a common base |
22 |
(conversion from flat profiles to cascaded for example). |
23 |
|
24 |
~harring |