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 (-1 / +15 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
	fail = False
441
	pv = ''
442
443
	def new(self, pkg):
444
		self.pv = pkg.cpv_split[1] + '.' + pkg.cpv_split[2]
445
		self.re = re.compile(self.pv, re.I)
446
		self.src_uri = pkg.metadata["SRC_URI"]
447
		self.fail = self.re.search( self.src_uri)
448
449
	def check(self, num, line):
450
		if self.fail:
451
			return "SRC_URI: '" + self.src_uri + "' conntains $P: '" \
452
			+ self.pv + "' but it shouldn't."
453
439
# EAPI-3 checks
454
# EAPI-3 checks
440
class Eapi3DeprecatedFuncs(LineCheck):
455
class Eapi3DeprecatedFuncs(LineCheck):
441
	repoman_check_name = 'EAPI.deprecated'
456
	repoman_check_name = 'EAPI.deprecated'
442
- 

Return to bug 292394