summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-10-22 17:59:25 +0000
committerZac Medico <zmedico@gentoo.org>2008-10-22 17:59:25 +0000
commit45e4144a4de799ac9e65ab886e3af175c57adb3a (patch)
tree761562852ed49422d657b9a46248cb3628525b1f
parentfeb87e49d0cd67bad11b7a6905dc1665a7b6d58f (diff)
downloadportage-45e4144a4de799ac9e65ab886e3af175c57adb3a.tar.gz
portage-45e4144a4de799ac9e65ab886e3af175c57adb3a.tar.bz2
portage-45e4144a4de799ac9e65ab886e3af175c57adb3a.zip
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
-rw-r--r--pym/repoman/checks.py7
1 files changed, 7 insertions, 0 deletions
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 \