Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: Sam James <sam@g.o>
Subject: Re: [gentoo-dev] [PATCH] autotools.eclass: eclassdoc, cosmetic changes, drop old EAPIs
Date: Sun, 28 Mar 2021 10:19:47
Message-Id: f4da5e870655f532787169aa1cc32495e35ba138.camel@gentoo.org
In Reply to: [gentoo-dev] [PATCH] autotools.eclass: eclassdoc, cosmetic changes, drop old EAPIs by Sam James
1 Hi,
2
3 Thank you for doing this. LGTM modulo a few nits below.
4
5 On Sat, 2021-03-27 at 22:21 +0000, Sam James wrote:
6 > - if [[ ${EBUILD_PHASE} != "unpack" && ${EBUILD_PHASE} != "prepare" ]]; then
7 > - ewarn "QA Warning: running $1 in ${EBUILD_PHASE} phase"
8 > + if [[ ${EBUILD_PHASE_FUNC} != "src_unpack" && ${EBUILD_PHASE_FUNC} != "src_prepare" ]] ; then
9
10 Maybe use 'has' here?
11
12 > + eqawarn "Running '${1}' in ${EBUILD_PHASE_FUNC} phase"
13 >   fi
14 >  
15 >
16 >
17 >
18 >
19 >
20 >
21 >
22 >   if ${missing_ok} && ! type -P ${1} >/dev/null ; then
23 > - einfo "Skipping '$*' due $1 not installed"
24 > + einfo "Skipping '$*' because '${1}' not installed"
25
26 ...is not installed? ;-)
27
28
29 --
30 Best regards,
31 Michał Górny