>>>>> On Thu, 01 Nov 2018, Andrew Savchenko wrote: > -inherit eutils toolchain-funcs > +inherit toolchain-funcs > +case ${EAPI:-0} in > + # not used in the eclass, but left for backward compatibility with > legacy users > + 4|5|6) inherit eutils ;; > + 7) ;; > + *) die "EAPI=${EAPI} is not supported" ;; > +esac > > case ${EAPI:-0} in > - 4|5|6) EXPORT_FUNCTIONS pkg_setup ;; > + 4|5|6|7) EXPORT_FUNCTIONS pkg_setup ;; > *) die "EAPI=${EAPI} is not supported" ;; > esac
Why is the second case statement needed? Program flow can only reach it if the EAPI is 4, 5, 6, or 7. Ulrich
signature.asc
Description: PGP signature