diff options
-rwxr-xr-x | bin/common/srtool_utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/common/srtool_utils.py b/bin/common/srtool_utils.py index 7472641e..cd0305a1 100755 --- a/bin/common/srtool_utils.py +++ b/bin/common/srtool_utils.py @@ -2689,6 +2689,7 @@ def fix_duplicate_notifications(): ################################# # cve_trace +# $ ./bin/common/srtool_utils.py --cve-trace CVE-2024-23180 # def cve_trace(cve_name): @@ -2715,7 +2716,7 @@ def cve_trace(cve_name): print("CveSource found:") cvesource_list = cur.execute('SELECT * FROM orm_cvesource WHERE cve_id = "%s"' % cve_id) - for cvesource in cvesource_list: + for cvesource in cvesource_list: print(" CveSource=[%s] CVE=%s DataSource=%s (%s)" % (cvesource[ORM.CVESOURCE_ID],cvesource[ORM.CVESOURCE_CVE_ID],cvesource[ORM.CVESOURCE_DATASOURCE_ID],datasource_table[cvesource[ORM.CVESOURCE_DATASOURCE_ID]])) # Check the other foreign key check = cur_check.execute('SELECT * FROM orm_datasource WHERE id = "%s"' % cvesource[ORM.CVESOURCE_DATASOURCE_ID]).fetchone() |