aboutsummaryrefslogtreecommitdiff
blob: 37cb54314379f576d3a7fb2c0f0ab3fdbf5ebacb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import re

from repoman.modules.linechecks.base import LineCheck


class NoAsNeeded(LineCheck):
	"""Check for calls to the no-as-needed function."""
	repoman_check_name = 'upstream.workaround'
	re = re.compile(r'.*\$\(no-as-needed\)')
	error = 'NO_AS_NEEDED'


class SandboxAddpredict(LineCheck):
	"""Check for calls to the addpredict function."""
	repoman_check_name = 'upstream.workaround'
	re = re.compile(r'(^|\s)addpredict\b')
	error = 'SANDBOX_ADDPREDICT'