"metadata.missing":"Missing metadata.xml files",
"metadata.bad":"Bad metadata.xml files",
"metadata.warning":"Warnings in metadata.xml files",
+ "portage.internal":"The ebuild uses an internal Portage function",
"virtual.versioned":"PROVIDE contains virtuals with versions",
"virtual.exists":"PROVIDE contains existing package names",
"virtual.unavailable":"PROVIDE contains a virtual which contains no profile default",
"java.eclassesnotused",
"wxwidgets.eclassnotused",
"metadata.warning",
+"portage.internal",
"virtual.versioned",
"virtual.exists",
"virtual.unavailable",
.B metadata.warning
Warnings in metadata.xml files
.TP
+.B portage.internal
+The ebuild uses an internal Portage function
+.TP
.B upstream.workaround
The ebuild works around an upstream bug, an upstream bug should be filed and
tracked in bugs.gentoo.org
return ("variable '$%s'" % m.group(1)) + \
" is gone in EAPI=4 on line: %d"
+class PortageInternal(LineCheck):
+ repoman_check_name = 'portage.internal'
+ re = re.compile(r'[^#]*\b(ecompress|ecompressdir|prepalldocs)\b')
+
+ def check(self, num, line):
+ """Run the check on line and return error if there is one"""
+ m = self.re.match(line)
+ if m is not None:
+ return ("'%s'" % m.group(1)) + " called on line: %d"
+
_constant_checks = tuple((c() for c in (
EbuildHeader, EbuildWhitespace, EbuildBlankLine, EbuildQuote,
EbuildAssignment, Eapi3EbuildAssignment, EbuildUselessDodoc,
DeprecatedBindnowFlags, SrcUnpackPatches, WantAutoDefaultValue,
SrcCompileEconf, Eapi3DeprecatedFuncs, NoOffsetWithHelpers,
Eapi4IncompatibleFuncs, Eapi4GoneVars, BuiltWithUse,
- PreserveOldLib, SandboxAddpredict)))
+ PreserveOldLib, SandboxAddpredict, PortageInternal)))
_here_doc_re = re.compile(r'.*\s<<[-]?(\w+)$')