1 |
On Saturday 05 November 2005 22:24, Brian Harring wrote: |
2 |
> On Sat, Nov 05, 2005 at 10:18:14PM +0900, Jason Stubbs wrote: |
3 |
> > > ``Display-If-Installed:`` |
4 |
> > > Â Â A dependency atom or simple package name (for example, |
5 |
> > > Â Â ``<dev-lang/php-5_alpha`` or ``net-www/apache``). If the user has |
6 |
> > > the   package specified installed, the news item should be |
7 |
> > > displayed. |
8 |
> > > |
9 |
> > > ``Display-If-Keyword:`` |
10 |
> > > Â Â A keyword [#glep-22]_ name, for example ``mips``. If the user is |
11 |
> > > on the   arch in question, the news item should be displayed. |
12 |
> > > |
13 |
> > > ``Display-If-Profile:`` |
14 |
> > > Â Â A profile path, for example |
15 |
> > > ``default-linux/sparc/sparc64/server``. If   the user is using the |
16 |
> > > exact profile in question, the news item should be   displayed. |
17 |
> > > This header may be used to replace ``deprecated`` files in   the |
18 |
> > > future. |
19 |
|
20 |
Where'd those funny "A"s come from? |
21 |
|
22 |
> > Isn't keyword just a generalization of profile? Why have both? |
23 |
> |
24 |
> You would have to specify a common subprofile, and have the code know |
25 |
> to dig through the ancestors of a profile. |
26 |
|
27 |
"If a user is using the exact profile in question"... Common subprofiles seem |
28 |
to be irrelevant. I was going to bring up that point as well, but then I |
29 |
recalled that some utilized profiles have children also (such as amd64/2005.1 |
30 |
and amd64/2005.1/no-multilib). If subprofiles were also picked up, there |
31 |
would be no way to specify a news item that only pertained to multilib amd64 |
32 |
systems. |
33 |
|
34 |
> Breaks down when dealing with profiles that lack a common base |
35 |
> (conversion from flat profiles to cascaded for example). |
36 |
|
37 |
My understanding is that each class of header can appear multiple times. As |
38 |
far as I can tell Display-If-Keyword would just prevent having to specify |
39 |
Display-If-Profile for each profile of the keyword specified. I'd just like |
40 |
to clarify that it has no purpose beyond that. |
41 |
|
42 |
-- |
43 |
Jason Stubbs |
44 |
|
45 |
-- |
46 |
gentoo-dev@g.o mailing list |