From: Zac Medico Date: Sat, 20 Dec 2008 20:24:11 +0000 (-0000) Subject: Simplify the InheritAutotools pattern by using \b to match word boundaries. X-Git-Tag: v2.1.6.2~1 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=724668cda60647914321a2d67c2c471802ba694d;p=portage.git Simplify the InheritAutotools pattern by using \b to match word boundaries. (trunk r12264) svn path=/main/branches/2.1.6/; revision=12266 --- diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index 6778c8c58..6f2c076c3 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -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.