11#
22# Copyright (c) nexB Inc. and others. All rights reserved.
3- # http://nexb.com and https://github.com/nexB/vulnerablecode/
4- # The VulnTotal software is licensed under the Apache License version 2.0.
5- # Data generated with VulnTotal require an acknowledgment.
3+ # VulnerableCode is a trademark of nexB Inc.
4+ # SPDX-License-Identifier: Apache-2.0
5+ # See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
6+ # See https://github.com/nexB/vulnerablecode for support or download.
7+ # See https://aboutcode.org for more information about nexB OSS projects.
68#
7- # You may not use this software except in compliance with the License.
8- # You may obtain a copy of the License at: http://apache.org/licenses/LICENSE-2.0
9- # Unless required by applicable law or agreed to in writing, software distributed
10- # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11- # CONDITIONS OF ANY KIND, either express or implied. See the License for the
12- # specific language governing permissions and limitations under the License.
13- #
14- # When you publish or redistribute any data created with VulnTotal or any VulnTotal
15- # derivative work, you must accompany this data with the following acknowledgment:
16- #
17- # Generated with VulnTotal and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
18- # OR CONDITIONS OF ANY KIND, either express or implied. No content created from
19- # VulnTotal should be considered or used as legal advice. Consult an Attorney
20- # for any legal advice.
21- # VulnTotal is a free software tool from nexB Inc. and others.
22- # Visit https://github.com/nexB/vulnerablecode/ for support and download.
239
24-
25- import json
2610import logging
2711import os
2812import shutil
3317import requests
3418import saneyaml
3519from fetchcode import fetch
36- from packageurl import PackageURL
3720
3821from vulntotal .validator import DataSource
3922from vulntotal .validator import VendorData
@@ -55,7 +38,9 @@ def datasource_advisory(self, purl) -> Iterable[VendorData]:
5538 casesensitive_package_slug = get_casesensitive_slug (path , package_slug )
5639 location = download_subtree (casesensitive_package_slug )
5740 if location :
58- interesting_advisories = parse_interesting_advisories (location , purl .version , delete_download = True )
41+ interesting_advisories = parse_interesting_advisories (
42+ location , purl .version , delete_download = True
43+ )
5944 return interesting_advisories
6045 clear_download (location )
6146
0 commit comments