@@ -, +, @@ --- pym/repoman/checks.py | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) --- a/pym/repoman/checks.py +++ a/pym/repoman/checks.py @@ -436,6 +436,14 @@ class BuiltWithUse(LineCheck): re = re.compile('^.*built_with_use') error = errors.BUILT_WITH_USE +class PNotInSourceUri(LineCheck): + def new(self, pkg): + src_uri_head = '\A\s*SRC_URI\s*=\s*".*' + src_uri_tail = '.*"\s*\#?.*\Z' + pv = pkg.cpv_split[1] + '.' + pkg.cpv_split[2] + self.re = re.compile(src_uri_head + pv + src_uri_tail, re.I) + self.error = "SRC_URI contains something really similar to expanded value of $P." + # EAPI-3 checks class Eapi3DeprecatedFuncs(LineCheck): repoman_check_name = 'EAPI.deprecated' @@ -496,7 +504,7 @@ _constant_checks = tuple((c() for c in ( EbuildPatches, EbuildQuotedA, EapiDefinition, IUseUndefined, InheritAutotools, EMakeParallelDisabled, EMakeParallelDisabledViaMAKEOPTS, NoAsNeeded, - DeprecatedBindnowFlags, SrcUnpackPatches, WantAutoDefaultValue, + DeprecatedBindnowFlags,PNotInSourceUri, SrcUnpackPatches, WantAutoDefaultValue, SrcCompileEconf, Eapi3DeprecatedFuncs, Eapi4IncompatibleFuncs, Eapi4GoneVars, BuiltWithUse))) --