Skip to content

Commit 92638fc

Browse files
committed
Bump fetchcode to v0.3.0
Signed-off-by: Keshav Priyadarshi <[email protected]>
1 parent cc7d145 commit 92638fc

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ websocket-client==0.59.0
113113
yarl==1.7.2
114114
zipp==3.8.0
115115
dateparser==1.1.1
116-
# TODO: pin fetchcode, once nexB/fetchcode#93 is merged
117-
# fetchcode==0.2.0
116+
fetchcode==0.3.0
118117
cwe2==2.0.0
119118
drf-spectacular-sidecar==2022.10.1
120119
drf-spectacular==0.24.2

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ install_requires =
9090
# networking
9191
GitPython>=3.1.17
9292
requests>=2.25.1
93-
# TODO: replace this with new fetchcode release
94-
fetchcode @ git+https://github.com/nexB/fetchcode.git@refs/pull/93/head
93+
fetchcode>=0.3.0
9594

9695
#vulntotal
9796
python-dotenv

vulnerabilities/improvers/valid_versions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def get_package_versions(
7373
"""
7474
versions = package_versions.versions(str(package_url))
7575
versions_before_until = set()
76-
for version in versions:
76+
for version in versions or []:
7777
if until and version.release_date and version.release_date > until:
7878
continue
7979
versions_before_until.add(version.value)
@@ -277,7 +277,7 @@ def fetch_nginx_version_from_git_tags(self):
277277
Yield all nginx version from its git tags.
278278
"""
279279
nginx_versions = package_versions.versions("pkg:github/nginx/nginx")
280-
for version in nginx_versions:
280+
for version in nginx_versions or []:
281281
cleaned = clean_nginx_git_tag(version.value)
282282
yield cleaned
283283

0 commit comments

Comments
 (0)