Skip to content

Commit

Permalink
Add BSD-3-Clause to BOM script
Browse files Browse the repository at this point in the history
Fixes #632
  • Loading branch information
erikbosch authored and lukasmittag committed Aug 1, 2023
1 parent 493db1b commit 910e955
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions kuksa_databroker/createbom/bomutil/maplicensefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@
"rustls-webpki": "webpki.LICENSE.txt.gz",
# License text taken from https://spdx.org/licenses/0BSD.html
"0BSD": "0BSD.txt.gz",
# License test taken from https://spdx.org/licenses/BSD-3-Clause.html
"BSD-3-Clause": "BSD-3-Clause.txt.gz"
}
5 changes: 2 additions & 3 deletions kuksa_databroker/createbom/createbom.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def generate_bom(source_path, target_path, dashout):
errors = []
for crate in crates:
try:
print(f"License for {crate['name']}: ", end="")
print(f"License for {crate['name']} {crate['version']}: ", end="")
license_filenames = extract_license_filenames(crate)
for license_filename in license_filenames:
license_files.add(license_filename)
Expand Down Expand Up @@ -178,7 +178,7 @@ def main(args=None):
)
return -2

if args.dash != None and os.path.exists(args.dash):
if args.dash is not None and os.path.exists(args.dash):
print(
f"Requested Dash output file {args.dash} exists. Remove it before running this script.")
return -3
Expand All @@ -195,6 +195,5 @@ def main(args=None):


if __name__ == "__main__":
import sys

sys.exit(main(sys.argv[1:]))
Binary file not shown.

0 comments on commit 910e955

Please sign in to comment.