Bug #251591 - Adjust the InheritAutotools pattern to treat more things similar to
authorZac Medico <zmedico@gentoo.org>
Sat, 20 Dec 2008 19:46:33 +0000 (19:46 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 20 Dec 2008 19:46:33 +0000 (19:46 -0000)
whitespace. Now it recognizes escaped newlines, || operators, and && operators.
(trunk r12260)

svn path=/main/branches/2.1.6/; revision=12263

pym/repoman/checks.py

index c90b54f7bbcd8f3d778758c2ba649f9bb5ba1333..6778c8c58791eb53179ff41498dcdfe073540e13 100644 (file)
@@ -242,8 +242,8 @@ class InheritAutotools(LineCheck):
        _autotools_funcs = (
                "eaclocal", "eautoconf", "eautoheader",
                "eautomake", "eautoreconf", "_elibtoolize")
-       _autotools_func_re = re.compile(r'(^|\s)(' + \
-               "|".join(_autotools_funcs) + ')(\s|$)')
+       _autotools_func_re = re.compile(r'(^|\s|\|\||&&)(' + \
+               "|".join(_autotools_funcs) + r')(\s|\|\||&&|\\?$)')
        # Exempt eclasses:
        # git - An EGIT_BOOTSTRAP variable may be used to call one of
        #       the autotools functions.