Simplify the InheritAutotools pattern by using \b to match word boundaries.
authorZac Medico <zmedico@gentoo.org>
Sat, 20 Dec 2008 20:11:03 +0000 (20:11 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 20 Dec 2008 20:11:03 +0000 (20:11 -0000)
svn path=/main/trunk/; revision=12264

pym/repoman/checks.py

index 6778c8c58791eb53179ff41498dcdfe073540e13..6f2c076c32907785a52a4b95bf62fe3390f5928c 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) + r')(\s|\|\||&&|\\?$)')
+       _autotools_func_re = re.compile(r'\b(' + \
+               "|".join(_autotools_funcs) + r')\b')
        # Exempt eclasses:
        # git - An EGIT_BOOTSTRAP variable may be used to call one of
        #       the autotools functions.