From 45e4144a4de799ac9e65ab886e3af175c57adb3a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 22 Oct 2008 17:59:25 +0000 Subject: Bug #243224 - Add an exemption to the inherit.autotools check for ebuilds that inherit git.eclass since the GIT_BOOTSTRAP variable may be used to call one of autotools functions. svn path=/main/trunk/; revision=11719 --- pym/repoman/checks.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pym/repoman/checks.py') diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index f4a7733a0..7ecb235e8 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -232,12 +232,19 @@ class InheritAutotools(LineCheck): "eautomake", "eautoreconf", "_elibtoolize") _autotools_func_re = re.compile(r'(^|\s)(' + \ "|".join(_autotools_funcs) + ')(\s|$)') + # Exempt eclasses: + # git - An EGIT_BOOTSTRAP variable may be used to call one of + # the autotools functions. + _exempt_eclasses = frozenset(["git"]) def new(self, pkg): self._inherit_autotools = None self._autotools_func_call = None + self._disabled = self._exempt_eclasses.intersection(pkg.inherited) def check(self, num, line): + if self._disabled: + return if self._inherit_autotools is None: self._inherit_autotools = self._inherit_autotools_re.match(line) if self._inherit_autotools is not None and \ -- cgit v1.2.3-1-g7c22