sw360 / capycli

CaPyCLI - Python scripts for software license compliance automation with SW360
Other
13 stars 7 forks source link

update sw360python & refactor SBomWriter #43

Closed gernot-h closed 1 year ago

gernot-h commented 1 year ago

This PR contains two small improvements I developed in the context of #33 which might be worth to be merged already now.

First, we should update sw360python to 1.2.2 to include the fix for download_release_attachment() which could silently ignore download failures and thus probably lead to inconsistent CLI files in "project getlicenseinfo".

Second, I refactored the SBomWriter to avoid creation of a temporary file when writing a BOM with pretty_print.