diff mbox series

[v4,1/3] parse/ConfHandler: allow / in variable flags

Message ID 20241205163932.4049957-1-alex.kanavin@gmail.com
State Accepted, archived
Commit 80805988492b35593067230f68782a5687c8f557
Headers show
Series [v4,1/3] parse/ConfHandler: allow / in variable flags | expand

Commit Message

Alexander Kanavin Dec. 5, 2024, 4:39 p.m. UTC
From: Alexander Kanavin <alex@linutronix.de>

This is beneficial for config fragments, as their names
are specified via flags, and those names can include slashes:

BB_CONF_FRAGMENT_SUMMARY[init/systemd] = "This fragment enables systemd as an init manager"

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 lib/bb/parse/parse_py/ConfHandler.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/bb/parse/parse_py/ConfHandler.py b/lib/bb/parse/parse_py/ConfHandler.py
index 7826dee7d3d..27665443dd4 100644
--- a/lib/bb/parse/parse_py/ConfHandler.py
+++ b/lib/bb/parse/parse_py/ConfHandler.py
@@ -21,7 +21,7 @@  __config_regexp__  = re.compile( r"""
     ^
     (?P<exp>export\s+)?
     (?P<var>[a-zA-Z0-9\-_+.${}/~:]+?)
-    (\[(?P<flag>[a-zA-Z0-9\-_+.][a-zA-Z0-9\-_+.@]*)\])?
+    (\[(?P<flag>[a-zA-Z0-9\-_+.][a-zA-Z0-9\-_+.@/]*)\])?
 
     \s* (
         (?P<colon>:=) |