Gentoo Archives: gentoo-portage-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-portage-dev@l.g.o
Cc: creffett@g.o
Subject: Re: [gentoo-portage-dev] [PATCH] Add repoman check to warn if src_prepare/src_configure are used in EAPI 0/1
Date: Tue, 14 Jan 2014 00:50:49
Message-Id: 201401131950.45341.vapier@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH] Add repoman check to warn if src_prepare/src_configure are used in EAPI 0/1 by creffett@gentoo.org
1 On Monday 13 January 2014 19:08:30 creffett@g.o wrote:
2 > From: Chris Reffett <creffett@g.o>
3
4 you might want to set ~/.gitconfig to have your name/email so that git
5 sendemail uses the right info in the actual e-mail From: field
6
7 > + undefined_phases_re =
8 > re.compile(r'^\s*(src_configure|src_prepare)\s*\(\)')
9
10 you use re.match, so technically the ^ is redundant
11
12 i'd suggest merging the regex a little:
13 r'^\ssrc_(configure|prepare)\s*\(\)'
14
15 could check for pkg_pretend/pkg_info too (it's new to EAPI 4)
16
17 the regex is naive and can match valid ebuilds. consider ones that handle
18 $EAPI itself and will call the right funcs as necessary. can you check the
19 tree to see if anyone is doing this ? if so, we should drop a note to the dev
20 list and get them fixed up.
21 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies