summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-12-20 20:11:03 +0000
committerZac Medico <zmedico@gentoo.org>2008-12-20 20:11:03 +0000
commitd2a8d312849ad694e957475497b07ddb98e3a2c5 (patch)
tree4545b5ae0418c93484e4928b7df187420f62174e /pym/repoman
parentBug #251591 - Adjust the InheritAutotools pattern to treat more things simila... (diff)
downloadportage-idfetch-d2a8d312849ad694e957475497b07ddb98e3a2c5.tar.gz
portage-idfetch-d2a8d312849ad694e957475497b07ddb98e3a2c5.tar.bz2
portage-idfetch-d2a8d312849ad694e957475497b07ddb98e3a2c5.zip
Simplify the InheritAutotools pattern by using \b to match word boundaries.
svn path=/main/trunk/; revision=12264
Diffstat (limited to 'pym/repoman')
-rw-r--r--pym/repoman/checks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py
index 6778c8c5..6f2c076c 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.