mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] report/sbom.py: fix patch tag parsing
@ 2026-10-17 10:19 Ladislav Michl
  0 siblings, 0 replies; only message in thread
From: Ladislav Michl @ 2026-10-17 10:19 UTC (permalink / raw)
  To: ptxdist

From: Ladislav Michl <ladis@triops.cz>

Fix all patches being classified as unofficial, because regex matches
only single character tags.

Signed-off-by: Ladislav Michl <ladis@triops.cz>
---
 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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-17 10:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-17 10:19 [ptxdist] [PATCH] report/sbom.py: fix patch tag parsing Ladislav Michl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox