From e36e16016791819cd206c2771949a093fae6ebf5 Mon Sep 17 00:00:00 2001 From: Antoine Fontaine Date: Mon, 13 Apr 2020 11:53:17 +0200 Subject: [PATCH] =?UTF-8?q?pmb.parse.kconfig:=20check=20for=20end=20of=20l?= =?UTF-8?q?ine=20in=20"CONFIG=5F=E2=80=A6=3Dy"=20(MR=201916)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it's a nitpick, but now `is_set` won't return true for (e.g.) CONFIG_XYZ=marmelade. --- pmb/parse/kconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmb/parse/kconfig.py b/pmb/parse/kconfig.py index 6217fb68..0dd169fe 100644 --- a/pmb/parse/kconfig.py +++ b/pmb/parse/kconfig.py @@ -16,7 +16,7 @@ def is_set(config, option): Check, whether a boolean or tristate option is enabled either as builtin or module. """ - return re.search("^CONFIG_" + option + "=[ym]", config, re.M) is not None + return re.search("^CONFIG_" + option + "=[ym]$", config, re.M) is not None def check_config(config_path, config_path_pretty, config_arch, pkgver, details=False):