Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 292394 | Differences between
and this patch

Collapse All | Expand All

(-)a/pym/repoman/checks.py (-2 / +9 lines)
Lines 436-441 class BuiltWithUse(LineCheck): Link Here
436
	re = re.compile('^.*built_with_use')
436
	re = re.compile('^.*built_with_use')
437
	error = errors.BUILT_WITH_USE
437
	error = errors.BUILT_WITH_USE
438
438
439
class PNotInSourceUri(LineCheck):
440
	def new(self, pkg):
441
		src_uri_head = '\A\s*SRC_URI\s*=\s*".*'
442
		src_uri_tail = '.*"\s*\#?.*\Z'
443
		pv = pkg.cpv_split[1] + '.' + pkg.cpv_split[2]
444
		self.re = re.compile(src_uri_head + pv + src_uri_tail, re.I)
445
		self.error = "SRC_URI contains something really similar to expanded value of $P."
446
439
# EAPI-3 checks
447
# EAPI-3 checks
440
class Eapi3DeprecatedFuncs(LineCheck):
448
class Eapi3DeprecatedFuncs(LineCheck):
441
	repoman_check_name = 'EAPI.deprecated'
449
	repoman_check_name = 'EAPI.deprecated'
Lines 496-502 _constant_checks = tuple((c() for c in ( Link Here
496
	EbuildPatches, EbuildQuotedA, EapiDefinition,
504
	EbuildPatches, EbuildQuotedA, EapiDefinition,
497
	IUseUndefined, InheritAutotools,
505
	IUseUndefined, InheritAutotools,
498
	EMakeParallelDisabled, EMakeParallelDisabledViaMAKEOPTS, NoAsNeeded,
506
	EMakeParallelDisabled, EMakeParallelDisabledViaMAKEOPTS, NoAsNeeded,
499
	DeprecatedBindnowFlags, SrcUnpackPatches, WantAutoDefaultValue,
507
	DeprecatedBindnowFlags,PNotInSourceUri, SrcUnpackPatches, WantAutoDefaultValue,
500
	SrcCompileEconf, Eapi3DeprecatedFuncs,
508
	SrcCompileEconf, Eapi3DeprecatedFuncs,
501
	Eapi4IncompatibleFuncs, Eapi4GoneVars, BuiltWithUse)))
509
	Eapi4IncompatibleFuncs, Eapi4GoneVars, BuiltWithUse)))
502
510
503
- 

Return to bug 292394