Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update sw360python & refactor SBomWriter #43

Merged
merged 2 commits into from
Sep 24, 2023
Merged

update sw360python & refactor SBomWriter #43

merged 2 commits into from
Sep 24, 2023

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
5 checks passed
@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.

2 participants