Ühel kenal päeval, N, 19.05.2016 kell 18:51, kirjutas Amadeusz
Żołnowski:
> Ulrich Mueller <u...@gentoo.org> writes:
> > The EAPI 6 method would be to use "|| die -n". Then the caller can
> > either call "eawk" if the function should die automatically, or
> > "nonfatal eawk" if it should return with an error status.

Don't you possibly need a || return as well in there if it isn't the
last things in the function?
https://blogs.gentoo.org/mgorny/2015/11/13/the-ultimate-guide-to-eapi-6

> Yes, that seems better. Hasn't it been introduced earlier than in
> EAPI 6?

die -n argument is new in EAPI 6
nonfatal was added in EAPI 4, together with the fatality defaults for
PM utilities.
See https://devmanual.gentoo.org/ebuild-writing/eapi/


Mart

Reply via email to