On Thursday 30 June 2005 23:36, Aron Griffis wrote:
> Dan Armak wrote:      [Thu Jun 30 2005, 04:06:03PM EDT]
>
> > Because the function takes a parameter - the minimal version
> > required from which to start the list in the ||.
>
> Makes sense.
>
> > Any everyone who thinks functions inside $DEPEND are iffy should
> > look at deprange() and deprange-dual()... /me hides
>
> They're definitely iffy.  Try this at a bash prompt:
>
>     DEPEND="$(exit 1)"
>
> See the problem?  It didn't exit.  That's what will happen if
> a function in DEPEND fails: nothing.  Except that yours will currently
> stick this in DEPEND:
>
>     !!! error: qt_min_version called with invalid parameter: \"$1\",
>     please report bug
>
Instead of 'exit 1', qt_min_version should use die. I use that in deprange and 
it does work inside $DEPEND.

-- 
Dan Armak
Gentoo Linux developer (KDE)
Public GPG key: http://dev.gentoo.org/~danarmak/danarmak-gpg-public.key
Fingerprint: DD70 DBF9 E3D4 6CB9 2FDD  0069 508D 9143 8D5F 8951

Attachment: pgpFR8CXBg7se.pgp
Description: PGP signature

Reply via email to