utils/checkpackagelib/lib_mk.py: check CONF_OPTS

As already done for {FOO}_DEPENDENCIES in commit
4910a175b3, check that {FOO}_CONF_OPTS are
never overridden in a conditional

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Fabrice Fontaine 2022-02-23 21:36:31 +01:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent b4adbfaf2e
commit 4dc48e8b9d

View File

@ -90,6 +90,7 @@ class OverriddenVariable(_CheckFunction):
r"_SOURCE\s*=\s*",
r"_VERSION\s*=\s*"])))
FORBIDDEN_OVERRIDDEN = re.compile(r"^[A-Z0-9_]+({})".format("|".join([
r"_CONF_OPTS\s*=\s*",
r"_DEPENDENCIES\s*=\s*"])))
def before(self):