Bug #243224 - Add an exemption to the inherit.autotools check for ebuilds that
authorZac Medico <zmedico@gentoo.org>
Wed, 22 Oct 2008 17:59:25 +0000 (17:59 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 22 Oct 2008 17:59:25 +0000 (17:59 -0000)
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

index f4a7733a07ef9e1aaca4ab53ffde06f71155165c..7ecb235e8eb06b0c37686cacbcf1a9c1eaf82128 100644 (file)
@@ -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 \