summaryrefslogtreecommitdiffstats
path: root/pym/repoman
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-07-08 01:07:51 -0700
committerZac Medico <zmedico@gentoo.org>2011-07-08 01:07:51 -0700
commit8f80a4d52bbc05200f51ca659a4fe574f80fdc49 (patch)
tree3e8ab729fef426f280b150b8fc368f2a0f66e1e8 /pym/repoman
parentcaf6e68cc5fd175a52610bebdec7d354cc7b714a (diff)
downloadportage-8f80a4d52bbc05200f51ca659a4fe574f80fdc49.tar.gz
portage-8f80a4d52bbc05200f51ca659a4fe574f80fdc49.tar.bz2
portage-8f80a4d52bbc05200f51ca659a4fe574f80fdc49.zip
repoman: tighten regex for useq and hasq
Diffstat (limited to 'pym/repoman')
-rw-r--r--pym/repoman/checks.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py
index 58ac20df0..e7472df72 100644
--- a/pym/repoman/checks.py
+++ b/pym/repoman/checks.py
@@ -587,19 +587,19 @@ class SrcUnpackPatches(PhaseCheck):
class BuiltWithUse(LineCheck):
repoman_check_name = 'ebuild.minorsyn'
- re = re.compile('^.*built_with_use')
+ re = re.compile(r'(^|.*\b)built_with_use\b')
error = errors.BUILT_WITH_USE
class DeprecatedUseq(LineCheck):
"""Checks for use of the deprecated useq function"""
repoman_check_name = 'ebuild.minorsyn'
- re = re.compile('^.*useq')
+ re = re.compile(r'(^|.*\b)useq\b')
error = errors.USEQ_ERROR
class DeprecatedHasq(LineCheck):
"""Checks for use of the deprecated hasq function"""
repoman_check_name = 'ebuild.minorsyn'
- re = re.compile('^.*hasq')
+ re = re.compile(r'(^|.*\b)hasq\b')
error = errors.HASQ_ERROR
# EAPI-3 checks