On Sun, Oct 5, 2008 at 2:55 PM, Thilo Bangert <[EMAIL PROTECTED]> wrote:
> Ciaran McCreesh <[EMAIL PROTECTED]> said:
>> On Sun, 5 Oct 2008 03:44:20 -0700
>>
>> "Robin H. Johnson" <[EMAIL PROTECTED]> wrote:
>> > Either we need special cases to declare that it no longer has a
>> > homepage, or we need to allow the empty HOMEPAGE.
>>
>> HOMEPAGE="( )"
>
> HOMEPAGE="http://this-package-has-no-homepage.gentoo.org/";
>

That would impose needless lookups on subdomains of gentoo.org for
clients trying to load the homepage.

HOMEPAGE="UNKNOWN" seems to work fine and keeps logic fairly simple:

if HOMEPAGE != "UNKNOWN"
  do_something_with_HOMEPAGE
...

The metadata API could even wrap this functionality such that packages
with no homepages could return nothing (not even UNKNOWN) or throw
some kind of error.

The only reason I would prefer UNKNOWN to Ciaran's suggestion is that
HOMEPAGE="( )" is not obvious to the majority of people (it basically
looks like a developer mis-pasted or had some other accident).

-Alec

Reply via email to