summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 \