From 735b4a2f7103cbb45d87e11ecbf6a74feeae5deb Mon Sep 17 00:00:00 2001 From: Miroslav Franc <mfranc@suse.cz> Date: May 07 2025 18:13:24 +0000 Subject: scripts/python/dispatch-cves: guard bsc number extracting code better --- diff --git a/scripts/python/dispatch-cves b/scripts/python/dispatch-cves index b6d1328..8701220 100755 --- a/scripts/python/dispatch-cves +++ b/scripts/python/dispatch-cves @@ -142,9 +142,10 @@ def handle_file(bzapi, path, to_dispatch, remove_file, is_interactive=True): needinfo_list = [] for l in f: should_go_out = True - m = re.search(BSC_PATTERN, l) - if m: - bug = int(m.group(1)) + if l.startswith('Security fix for CVE-'): + m = re.search(BSC_PATTERN, l) + if m: + bug = int(m.group(1)) if l.startswith('NO CODESTREAM AFFECTED') or l.startswith('NO ACTION NEEDED'): candidate_emails = [ SECURITY_EMAIL ] decided = True