Dan Armak wrote:        [Fri Jul 01 2005, 03:42:22AM EDT]
> ...OK, so deprange() needs to signal errors out-of-band. Like setting a 
> KM_ERROR variable which causes the eclass to abort later on.

Heh, doesn't work for the same reason you can't exit.  It's
a subshell.

How about this?

ebuild:
    DEPEND="some stuff"
    qt_min_dep "3.3"

eclass:
    qt_min_dep() {
        if cool; then
            DEPEND="${DEPEND} new stuff"
        else
            die "..."
        fi
    }

Regards,
Aron

--
Aron Griffis
Gentoo Linux Developer

Attachment: pgpUNHGjZxwek.pgp
Description: PGP signature

Reply via email to