summaryrefslogtreecommitdiffstats
path: root/pym/repoman/checks.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/repoman/checks.py')
-rw-r--r--pym/repoman/checks.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pym/repoman/checks.py b/pym/repoman/checks.py
index f7d7ce79d..e5237237f 100644
--- a/pym/repoman/checks.py
+++ b/pym/repoman/checks.py
@@ -274,13 +274,19 @@ class EMakeParallelDisabled(LineCheck):
re = re.compile(r'^\s*emake\s*-j\s*1\s')
error = errors.EMAKE_PARALLEL_DISABLED
+class DeprecatedBindnowFlags(LineCheck):
+ """Check for calls to the deprecated bindnow-flags function."""
+ repoman_check_name = 'ebuild.minorsyn'
+ re = re.compile(r'.*\$\(bindnow-flags\)')
+ error = errors.DEPRECATED_BINDNOW_FLAGS
+
_constant_checks = tuple((c() for c in (
EbuildHeader, EbuildWhitespace, EbuildQuote,
EbuildAssignment, EbuildUselessDodoc,
EbuildUselessCdS, EbuildNestedDie,
EbuildPatches, EbuildQuotedA,
IUseUndefined, InheritAutotools,
- EMakeParallelDisabled)))
+ EMakeParallelDisabled, DeprecatedBindnowFlags)))
def run_checks(contents, pkg):
checks = _constant_checks