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

Collapse All | Expand All

(-)a/pym/repoman/checks.py (-1 / +12 lines)
Lines 833-838 class RootCheckTrailingSlash(LineCheck): Link Here
833
		if match:
833
		if match:
834
			return "${ROOT} check should handle empty ROOT on line: %d"
834
			return "${ROOT} check should handle empty ROOT on line: %d"
835
835
836
class PathTrailingSlash(LineCheck):
837
	"""Check ebuild for paths assuming that ${D} and ${ROOT} end with
838
	a trailing slash."""
839
	repoman_check_name = 'ebuild.minorsyn'
840
	slashcheck_re = re.compile(r'(\${?(?:D|ROOT)}?["\']?)([a-z]+)')
841
842
	def check(self, num, line):
843
		match = self.slashcheck_re.search(line)
844
		if match:
845
			return '%s should be %s/%s' % (match.group(0),
846
					match.group(1), match.group(2)) + ' on line: %d'
847
836
_base_check_classes = (InheritEclass, LineCheck, PhaseCheck)
848
_base_check_classes = (InheritEclass, LineCheck, PhaseCheck)
837
_constant_checks = tuple(chain((v() for k, v in globals().items()
849
_constant_checks = tuple(chain((v() for k, v in globals().items()
838
	if isinstance(v, type) and issubclass(v, LineCheck) and v not in _base_check_classes),
850
	if isinstance(v, type) and issubclass(v, LineCheck) and v not in _base_check_classes),
839
- 

Return to bug 465772