Add an exemption for x-modular in the "inherit.autotools" check. Thanks to
authorZac Medico <zmedico@gentoo.org>
Wed, 18 Jun 2008 06:55:41 +0000 (06:55 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 18 Jun 2008 06:55:41 +0000 (06:55 -0000)
remi` for reporting.

svn path=/main/trunk/; revision=10714

pym/repoman/checks.py

index 0f339adbcd0060ed79d4dfefe23384ae861e724c..dbd3b5ccc7e9f07b6f9e818e95533901911f68d0 100644 (file)
@@ -225,15 +225,16 @@ _autotools_funcs = (
 _autotools_func_re = re.compile(r'(^|\s)(' + \
        "|".join(_autotools_funcs) + ')(\s|$)')
 
+# eclasses that inherit autotools and call it's functions
+_autotools_eclasses = frozenset(["apache-2", "x-modular"])
+
 def run_checks(contents, pkg):
        checks = list(_constant_checks)
        checks.append(EbuildHeader(pkg.mtime))
        iuse_def = None
        inherit_autotools = "autotools" in pkg.inherited
        if inherit_autotools:
-               if "apache-2" in pkg.inherited:
-                       # eautoreconf is called by apache-2_src_unpack(),
-                       # so the ebuild doesn't need to call it.
+               if _autotools_eclasses.intersection(pkg.inherited):
                        inherit_autotools = False
        autotools_func_call = None
        for num, line in enumerate(contents):