On 20:41 Wed 26 Sep , George Shapovalov (george) wrote: > george 07/09/26 20:41:34 > > Modified: gnat.eclass > Log: > added get_active_profile helper function
> Revision Changes Path > 1.28 eclass/gnat.eclass > > file : > http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gnat.eclass?rev=1.28&view=markup > plain: > http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gnat.eclass?rev=1.28&content-type=text/plain > diff : > http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gnat.eclass?r1=1.27&r2=1.28 > +# Returns a name of active gnat profile. Peroroms some validity checks. No > input > +# parameters, analyzes the system setup directly. > +get_active_profile() { > + # get common code and settings > + . ${GnatCommon} || die "failed to source gnat-common lib" > + > + local profiles=( $(get_env_list) ) > + > + if [[ [EMAIL PROTECTED] == "${MARKER}*" ]]; then > + exit I'm surprised to see exit called in a function instead of returning nonzero. Thanks, Donnie -- [EMAIL PROTECTED] mailing list