Skip to content

Conversation

JanAltenberg
Copy link
Contributor

Description

implodeLicenses() explicitely parses for "Dual-license". If a user decides to add a custom text for the Dual-license conclusion the license name will be Dual-license-MD5. In this case dual licensing is not reflected correctly in the SPDX2TV report. Instead of:

LicenseA OR LicenseB

it will be reflected as

LicenseA AND LicenseB AND LicenseRef-fossology-Dual-license-MD5

Changes

Change the behaviour of implodeLicenses to look for the prefix Dual-license to fix the generation of SPDX2TV reports for Dual-license with custom text.

How to test

  1. Take latest master
  2. Upload and scan a package
  3. Conclude 2 different licenses and Dual-license for a specific file
  4. Set a license text for Dual-license
  5. Create a SPDX2TV report

Without the changes in this pull request Dual-license is not handled correctly (LicenseA AND LicenseB AND LicenseRef-fossology-Dual-license-MD5). With these changes applied, the resulting statement is correct (LicenseA OR LicenseB).

implodeLicenses() explicitely parses for "Dual-license". If a user decides to
add a custom text for the Dual-license conclusion the license name will be
Dual-license-MD5. In this case dual licensing is not reflected correctly in the
SPDX2TV report. Change the behaviour of implodeLicenses to look for the prefix
Dual-license to fix the generation of SPDX2TV reports for Dual-license with
custom text.

Signed-off-by: Jan Altenberg <jan.altenberg@osadl.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants