diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-08-21 04:30:29 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-21 04:30:29 -0700 |
commit | 860167c12d29701b6eccc68854fb39ef1d4ad016 (patch) | |
tree | ad69f65da86090936be45daa1e752713378d3f3c /pym/repoman/checks.py | |
parent | 3ada2a89635c576028309aa2606b00304875eb83 (diff) | |
download | portage-860167c12d29701b6eccc68854fb39ef1d4ad016.tar.gz portage-860167c12d29701b6eccc68854fb39ef1d4ad016.tar.bz2 portage-860167c12d29701b6eccc68854fb39ef1d4ad016.zip |
Add upstream.workaround warning for addpredict calls. Thanks to
Diego Pettenò <flameeyes@g.o> for the suggestion.
Diffstat (limited to 'pym/repoman/checks.py')
-rw-r--r-- | pym/repoman/checks.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index 07f1deade..ed3079574 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -448,6 +448,12 @@ class PreserveOldLib(LineCheck): re = re.compile(r'.*preserve_old_lib') error = errors.PRESERVE_OLD_LIB +class SandboxAddpredict(LineCheck): + """Check for calls to the addpredict function.""" + repoman_check_name = 'upstream.workaround' + re = re.compile(r'(^|\s)addpredict\b') + error = errors.SANDBOX_ADDPREDICT + class DeprecatedBindnowFlags(LineCheck): """Check for calls to the deprecated bindnow-flags function.""" repoman_check_name = 'ebuild.minorsyn' @@ -553,7 +559,7 @@ _constant_checks = tuple((c() for c in ( DeprecatedBindnowFlags, SrcUnpackPatches, WantAutoDefaultValue, SrcCompileEconf, Eapi3DeprecatedFuncs, Eapi4IncompatibleFuncs, Eapi4GoneVars, BuiltWithUse, - PreserveOldLib))) + PreserveOldLib, SandboxAddpredict))) _here_doc_re = re.compile(r'.*\s<<[-]?(\w+)$') |