From: Zac Medico Date: Wed, 22 Oct 2008 17:59:25 +0000 (-0000) Subject: Bug #243224 - Add an exemption to the inherit.autotools check for ebuilds that X-Git-Tag: v2.2_rc13~63 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=45e4144a4de799ac9e65ab886e3af175c57adb3a;p=portage.git 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 --- 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 \