Gentoo Archives: gentoo-portage-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] repoman: add a mini framework for checking eclasses, and fill it out
Date: Thu, 24 May 2012 06:14:09
Message-Id: 201205232315.06296.vapier@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH] repoman: add a mini framework for checking eclasses, and fill it out by Mike Frysinger
1 On Wednesday 23 May 2012 15:21:51 Mike Frysinger wrote:
2 > + self._inherit_re = re.compile(r'^\s*inherit\s(.*\s)?%s(\s|$)' %
3
4 in scanning the whole tree, this seems to cause some issues (not new) with
5 extended constructs and not detecting this ebuilds inherits an eclass
6 directly. some examples:
7
8 (1)
9 foo="autotools"
10 ...
11 inherit ${foo}
12 this seems pointless imo since we've already ruled that multiple `inherit`
13 calls are OK
14
15 (2)
16 inherit ... \
17 autotools
18 this is annoying. maybe we should adapt the core line code to unroll these
19 before passing to the individual checks ?
20
21 (3)
22 [[ ${PV} == "9999" ]] && inherit autotools
23 this one would require tweaking the regex like so:
24 (^[[:space:]]*|[[:space:]])inherit
25
26 any opinions ?
27 -mike

Attachments

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

Replies