Skip to content

Commit

Permalink
Ignore suse/suse cvrf. Other performance improvements. (#172)
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu authored Jul 15, 2024
1 parent d7fdb6b commit d727689
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "appthreat-vulnerability-db"
version = "5.7.3"
version = "5.7.4"
description = "AppThreat's vulnerability database and package search library with a built-in file based storage. OSV, CVE, GitHub, npm are the primary sources of vulnerabilities."
authors = [
{name = "Team AppThreat", email = "[email protected]"},
Expand Down
6 changes: 4 additions & 2 deletions vdb/lib/aqua.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def is_supported_source(self, zfname):
"oval",
"glad",
"mariner",
f"cvrf{os.sep}suse{os.sep}suse",
):
if distro in zfname:
return False
Expand All @@ -140,8 +141,9 @@ def is_supported_source(self, zfname):
except Exception:
pass
for year in range(1999, nvd_start_year):
if f"CVE-{year}-" in zfname:
return False
for pat in (f"CVE-{year}-", f"{os.sep}{year}{os.sep}", f"ALAS-{year}-", f"ALAS2-{year}-", f"openSUSE-SU-{year}-"):
if pat in zfname:
return False
if zfname.endswith(".json"):
return True
return False
Expand Down

0 comments on commit d727689

Please sign in to comment.