From: Zac Medico Date: Fri, 8 Jul 2011 08:07:51 +0000 (-0700) Subject: repoman: tighten regex for useq and hasq X-Git-Tag: v2.2.0_alpha44~45 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8f80a4d52bbc05200f51ca659a4fe574f80fdc49;p=portage.git repoman: tighten regex for useq and hasq --- 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