summaryrefslogtreecommitdiffstats
path: root/pym/repoman/checks.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-11 05:07:40 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-11 05:07:40 +0000
commit1c9620566480cfb4ce708d73c45297835bc66c3c (patch)
tree680a17776c260cc788d005ae575b849a1f5ed2aa /pym/repoman/checks.py
parent731d4f2a8c5286e6a60aca46edbed302924f0187 (diff)
downloadportage-1c9620566480cfb4ce708d73c45297835bc66c3c.tar.gz
portage-1c9620566480cfb4ce708d73c45297835bc66c3c.tar.bz2
portage-1c9620566480cfb4ce708d73c45297835bc66c3c.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. (trunk r12603) svn path=/main/branches/2.1.6/; revision=12884
Diffstat (limited to 'pym/repoman/checks.py')
-rw-r--r--pym/repoman/checks.py11
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