Skip to content

Commit 622efe8

Browse files
committed
fix: improved logic
Signed-off-by: Meet Soni <[email protected]>
1 parent bef6ed2 commit 622efe8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cve_bin_tool/cvedb.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,6 @@ def populate_db(self) -> None:
526526
self.populate_metrics()
527527
# EPSS uses metrics table to get the EPSS metric id.
528528
# It can't be run before creation of metrics table.
529-
self.populate_purl2cpe()
530529

531530
for idx, data in enumerate(self.data):
532531
_, source_name = data
@@ -539,6 +538,9 @@ def populate_db(self) -> None:
539538
# if source_name != "NVD" and cve_data[0] is not None:
540539
# cve_data = self.update_vendors(cve_data)
541540

541+
if source_name == "PURL2CPE":
542+
self.populate_purl2cpe()
543+
542544
if source_name == "EPSS":
543545
if cve_data is not None:
544546
self.store_epss_data(cve_data)

0 commit comments

Comments
 (0)