Skip to content

Commit

Permalink
Give more license ouput
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbosch committed Jul 31, 2023
1 parent 9065760 commit 9a151c2
Showing 1 changed file with 2 additions and 3 deletions.
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:]))

0 comments on commit 9a151c2

Please sign in to comment.