Fix the 'inherit.autotools' check to account for apache-2_src_unpack()
authorZac Medico <zmedico@gentoo.org>
Sat, 14 Jun 2008 13:15:44 +0000 (13:15 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 14 Jun 2008 13:15:44 +0000 (13:15 -0000)
calling eautoreconf.

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

pym/repoman/checks.py

index e340a57f3a733854c7f5c8ffa915f89002536ce2..0f339adbcd0060ed79d4dfefe23384ae861e724c 100644 (file)
@@ -230,6 +230,11 @@ def run_checks(contents, pkg):
        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.
+                       inherit_autotools = False
        autotools_func_call = None
        for num, line in enumerate(contents):
                comment = _comment_re.match(line)