Marc Espie wrote:
> This would allow pkg_add to auto-configure a mirror, for the case where
> PKG_PATH was not specified and where pkg.conf does not exist.
> 
> It only triggers when a location ends up empty and when run in interactive
> mode, e.g., it shouldn't interfere with local lookups.
> 
> Good idea, or awful ?

This would be pretty surprising to me I think. If for some reason I have
failed to configure a mirror, I would prefer to get an error so I can fix the
underlying problem. If we can't contact a DNS server, we don't fallback on a
list of known public servers.

Auto config at install time is helpful, but this sort of dynamic auto config
violates an important principle: it should be possible to unconfig something.

Reply via email to