Skip to content

Conversation

@gernot-h
Copy link
Collaborator

@gernot-h gernot-h commented Sep 20, 2023

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.

sw360python 1.2.2 includes a fix to detect failed downloads. This might
fix sporadic, inconsistent downloads in "project getlicenseinfo".
It's not necessary to write and read SBOM to pretty print, we can also
just post-process the string representation.
@tngraf tngraf merged commit ad9f60d into main Sep 24, 2023
@gernot-h gernot-h deleted the gernot/minor-fixes branch September 27, 2023 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants