Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 224271
Collapse All | Expand All

(-)bin/repoman (+7 lines)
Lines 1108-1121 Link Here
1108
	EbuildUselessCdS, EbuildNestedDie,
1108
	EbuildUselessCdS, EbuildNestedDie,
1109
	EbuildPatches, EbuildQuotedA)))
1109
	EbuildPatches, EbuildQuotedA)))
1110
1110
1111
_iuse_def_re = re.compile(r'^IUSE=.*')
1112
1111
def run_checks(contents):
1113
def run_checks(contents):
1114
	iuse_def = None
1112
	for num, line in enumerate(contents):
1115
	for num, line in enumerate(contents):
1116
		if iuse_def is None:
1117
			iuse_def = _iuse_def_re.match(line)
1113
		for lc in _constant_checks:
1118
		for lc in _constant_checks:
1114
			ignore = lc.ignore_line
1119
			ignore = lc.ignore_line
1115
			if not ignore or not ignore.match(line):
1120
			if not ignore or not ignore.match(line):
1116
				e = lc.check(num, line)
1121
				e = lc.check(num, line)
1117
				if e:
1122
				if e:
1118
					yield lc.repoman_check_name, e % (num + 1)
1123
					yield lc.repoman_check_name, e % (num + 1)
1124
	if iuse_def is None:
1125
		yield 'ebuild.minorsyn', 'IUSE is not defined'
1119
1126
1120
if mymode == "commit":
1127
if mymode == "commit":
1121
	retval = ("","")
1128
	retval = ("","")

Return to bug 224271