On 9/20/07, Bo Ørsted Andresen <[EMAIL PROTECTED]> wrote:
> On Thursday 20 September 2007 19:54:16 Donnie Berkholz wrote:
> > > econf has default "econf failed" die message.
> > > The following would be sufficient:
> > > econf \
> > > --localstatedir=/var \
> > > --sysconfdir=/etc/csync2
> >
> > Is that so ... when did that appear? Does it happen for all of the
> > package managers? Which functions do this? Where is it documented?
>
> The currect PMS draft documents it (for econf only). All three package
> managers conform to it.

As you seem to know, PMS is still a draft and as such can't be
considered a valid reference document yet. The econf function is
indeed the only one that is officially documented as aborting
automatically via die(). You can find this in our Gentoo Development
Guide available at devmanual.gentoo.org.

In any case it is considered good practice to always add '||
die("message")' after all helper functions. The reason is you can't
(or shouldn't) rely on any of them dying properly now or in the
future. Plus adding a specific message helps debugging.

And about the existence of other package managers, yes, I've heard
that rumor too. I've even heard that they may work, but I can't
confirm.

Denis.
ï¿½ï¿½í¢‡^����(�     ��X��X�

Reply via email to