diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-02-12 23:12:41 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-02-12 23:12:41 +0000 |
commit | 7411bc1bde9734df9eb00b19044929e4047b8652 (patch) | |
tree | ff126f5825baf465a34daf0c222cd79e4853fb9f /pym/repoman/checks.py | |
parent | d13b6fdacd79be24e31b115450fbed975ada68ca (diff) | |
download | portage-7411bc1bde9734df9eb00b19044929e4047b8652.tar.gz portage-7411bc1bde9734df9eb00b19044929e4047b8652.tar.bz2 portage-7411bc1bde9734df9eb00b19044929e4047b8652.zip |
Add a new "portage.internal" warning for prepalldocs usage since the council
ruled that it shouldn't be used in ebuilds. Thanks to Petteri Räty
<betelgeuse@g.o> for the initial patch.
svn path=/main/trunk/; revision=12603
Diffstat (limited to 'pym/repoman/checks.py')
-rw-r--r-- | pym/repoman/checks.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py index e89020980..aee6d7c97 100644 --- a/pym/repoman/checks.py +++ b/pym/repoman/checks.py @@ -339,6 +339,15 @@ class WantAutoDefaultValue(LineCheck): return 'WANT_AUTO' + m.group(1) + \ ' redundantly set to default value "latest" on line: %d' +class PortageInternal(LineCheck): + """ + In February 2009 the Gentoo council ruled that + prepalldocs is a Portage internal. + """ + repoman_check_name = 'portage.internal' + re = re.compile(r'[^#]*\bprepalldocs\b') + error = errors.PREPALLDOCS_ERROR + _constant_checks = tuple((c() for c in ( EbuildHeader, EbuildWhitespace, EbuildQuote, EbuildAssignment, EbuildUselessDodoc, @@ -346,7 +355,7 @@ _constant_checks = tuple((c() for c in ( EbuildPatches, EbuildQuotedA, IUseUndefined, ImplicitRuntimeDeps, InheritAutotools, EMakeParallelDisabled, DeprecatedBindnowFlags, - WantAutoDefaultValue))) + WantAutoDefaultValue, PortageInternal))) def run_checks(contents, pkg): checks = _constant_checks |