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 / +12 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
	src_uri_re = re.compile('\A\s*SRC_URI\s*=\s*".*"\s*\Z')
441
442
	def new(self, pkg):
443
		pv = pkg.cpv_split[1] + '.' + pkg.cpv_split[2]
444
		self.re = re.compile( pv, re.I)
445
446
	def check(self, num, line):
447
		if self.src_uri_re.match(line) and self.re.search(line):
448
				return "SRC_URI contains something really similar to expanded value of $P."
449
439
# EAPI-3 checks
450
# EAPI-3 checks
440
class Eapi3DeprecatedFuncs(LineCheck):
451
class Eapi3DeprecatedFuncs(LineCheck):
441
	repoman_check_name = 'EAPI.deprecated'
452
	repoman_check_name = 'EAPI.deprecated'
Lines 496-502 _constant_checks = tuple((c() for c in ( Link Here
496
	EbuildPatches, EbuildQuotedA, EapiDefinition,
507
	EbuildPatches, EbuildQuotedA, EapiDefinition,
497
	IUseUndefined, InheritAutotools,
508
	IUseUndefined, InheritAutotools,
498
	EMakeParallelDisabled, EMakeParallelDisabledViaMAKEOPTS, NoAsNeeded,
509
	EMakeParallelDisabled, EMakeParallelDisabledViaMAKEOPTS, NoAsNeeded,
499
	DeprecatedBindnowFlags, SrcUnpackPatches, WantAutoDefaultValue,
510
	DeprecatedBindnowFlags,PNotInSourceUri, SrcUnpackPatches, WantAutoDefaultValue,
500
	SrcCompileEconf, Eapi3DeprecatedFuncs,
511
	SrcCompileEconf, Eapi3DeprecatedFuncs,
501
	Eapi4IncompatibleFuncs, Eapi4GoneVars, BuiltWithUse)))
512
	Eapi4IncompatibleFuncs, Eapi4GoneVars, BuiltWithUse)))
502
513
503
- 

Return to bug 292394