Emilio Pozuelo Monfort pushed to branch master at Debian Security Tracker / 
security-tracker


Commits:
17fada11 by Salvatore Bonaccorso at 2023-10-06T22:31:07+02:00
check-new-issues: Define set_cve_nfu before using it for automatic processing

When automatic NFU entry processing is enabled via the -a flag, then the
processing will error out as set_cve_nfu is not known. Move the
definition for set_cve_nfu upwards.

Signed-off-by: Salvatore Bonaccorso <car...@debian.org>

- - - - -
1071d84b by Emilio Pozuelo Monfort at 2023-10-09T07:00:11+00:00
Merge branch 'check-new-issues-automatic-processing' into 
'master'

check-new-issues: Define set_cve_nfu before using it for automatic processing

See merge request security-tracker-team/security-tracker!150
- - - - -


1 changed file:

- bin/check-new-issues


Changes:

=====================================
bin/check-new-issues
=====================================
@@ -260,6 +260,14 @@ def read_embedded_copies():
                 else:
                     syntax_error(f"Cannot parse {line}")
 
+def set_cve_nfu(name, desc):
+    cve = cves[name]
+    # remove todo: check annotation...
+    cve.annotations = [ann for ann in cve.annotations if not 
ann_is_todo_check(ann)]
+    # ... and add a NFU annotation
+    ann = parsers.StringAnnotation(0, "NOT-FOR-US", desc)
+    cve.annotations.append(ann)
+
 def syntax_error(s):
     print("embedded-code-copies: " + s, file=sys.stderr)
     sys.exit(1)
@@ -466,14 +474,6 @@ if args.auto:
     save_datafile(cves.values(), datafile)
     sys.exit(0)
 
-def set_cve_nfu(name, desc):
-    cve = cves[name]
-    # remove todo: check annotation...
-    cve.annotations = [ann for ann in cve.annotations if not 
ann_is_todo_check(ann)]
-    # ... and add a NFU annotation
-    ann = parsers.StringAnnotation(0, "NOT-FOR-US", desc)
-    cve.annotations.append(ann)
-
 def print_full_entry(name):
     print("======================================================")
     print(f"Name: {name}")



View it on GitLab: 
https://salsa.debian.org/security-tracker-team/security-tracker/-/compare/eda238e52649ab49bf993337da9b2ff0f15c5233...1071d84bc0b1878384b518ecb6936a5a34e69c26

-- 
View it on GitLab: 
https://salsa.debian.org/security-tracker-team/security-tracker/-/compare/eda238e52649ab49bf993337da9b2ff0f15c5233...1071d84bc0b1878384b518ecb6936a5a34e69c26
You're receiving this email because of your account on salsa.debian.org.


_______________________________________________
debian-security-tracker-commits mailing list
debian-security-tracker-commits@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-security-tracker-commits

Reply via email to