diff options
author | Dane Smith <c1pher@gentoo.org> | 2011-07-08 00:12:33 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-07-08 00:12:33 -0700 |
commit | de32b0d92ee28965c137bea637cddf6d8c0679c2 (patch) | |
tree | 314972f9c57b35edcdbf43c1d785825dffae9e09 /pym/repoman/checks.py | |
parent | f2770d06d66074e704454403515e516727a496cc (diff) | |
download | portage-de32b0d92ee28965c137bea637cddf6d8c0679c2.tar.gz portage-de32b0d92ee28965c137bea637cddf6d8c0679c2.tar.bz2 portage-de32b0d92ee28965c137bea637cddf6d8c0679c2.zip |
repoman: check for deprecated useq and hasq calls
Diffstat (limited to 'pym/repoman/checks.py')
-rw-r--r-- | pym/repoman/checks.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index c9ada5fbb..fabf0b3fb 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -586,6 +586,18 @@ class BuiltWithUse(LineCheck): re = re.compile('^.*built_with_use') 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') + error = errors.USEQ_ERROR + +class DeprecatedHasq(LineCheck): + """Checks for use of the deprecated hasq function""" + repoman_check_name = 'ebuild.minorsyn' + re = re.compile('^.*hasq') + error = errors.HASQ_ERROR + # EAPI-3 checks class Eapi3DeprecatedFuncs(LineCheck): repoman_check_name = 'EAPI.deprecated' @@ -651,7 +663,8 @@ _constant_checks = tuple((c() for c in ( DeprecatedBindnowFlags, SrcUnpackPatches, WantAutoDefaultValue, SrcCompileEconf, Eapi3DeprecatedFuncs, NoOffsetWithHelpers, Eapi4IncompatibleFuncs, Eapi4GoneVars, BuiltWithUse, - PreserveOldLib, SandboxAddpredict, PortageInternal))) + PreserveOldLib, SandboxAddpredict, PortageInternal, + DeprecatedUseq, DeprecatedHasq))) _here_doc_re = re.compile(r'.*\s<<[-]?(\w+)$') |