From: Ladislav Michl <[email protected]> Fix all patches being classified as unofficial, because regex matches only single character tags.
Signed-off-by: Ladislav Michl <[email protected]> --- scripts/report/sbom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/report/sbom.py b/scripts/report/sbom.py index 1c7790bac..19ff4dc57 100644 --- a/scripts/report/sbom.py +++ b/scripts/report/sbom.py @@ -87,7 +87,7 @@ class SbomGenerator(Generator): patches = [] tag = "base" - TAG = re.compile("#tag:([^ ]) .*") + TAG = re.compile("#tag:([^ ]+)") with open(series) as f: for line in f: line = line.strip() -- 2.47.3
