Bug 2108165 - license-fedora2spdx produces invalid, lower-cased "and"
Summary: license-fedora2spdx produces invalid, lower-cased "and"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: license-validate
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-18 13:47 UTC by Petr Pisar
Modified: 2022-07-27 02:34 UTC (History)
1 user (show)

Fixed In Version: license-validate-9-1.fc36 license-validate-9-1.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-27 02:22:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2022-07-18 13:47:28 UTC
license-fedora2spdx from license-validate-8-1.fc37.noarch does not capitalize conjunctions:

$ license-fedora2spdx '(GPL+ or Artistic) and ADSL'
( GPL-1.0-or-later OR Artistic-1.0-Perl ) and ADSL

SPDX requires an upper-case form <https://spdx.github.io/spdx-spec/SPDX-license-expressions/#d2-case-sensitivity>:

$ license-validate '( GPL-1.0-or-later OR Artistic-1.0-Perl ) and ADSL'
No terminal defined for 'a' at line 1 col 43

GPL-1.0-or-later OR Artistic-1.0-Perl ) and ADSL
                                        ^

Expecting: {'OR', 'AND'}

Comment 1 Miroslav Suchý 2022-07-18 14:46:45 UTC
Thank you for the report. 
Fixed.
https://pagure.io/copr/license-validate/c/d677cd6c469508a6ef73a5ffb14059dcc3f1e1fb?branch=main

Comment 2 Fedora Update System 2022-07-18 15:00:30 UTC
FEDORA-2022-cd870749c7 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-cd870749c7

Comment 3 Fedora Update System 2022-07-18 15:00:31 UTC
FEDORA-2022-c9687c4241 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-c9687c4241

Comment 4 Fedora Update System 2022-07-19 01:11:19 UTC
FEDORA-2022-cd870749c7 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-cd870749c7`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-cd870749c7

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2022-07-19 01:25:33 UTC
FEDORA-2022-c9687c4241 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-c9687c4241`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-c9687c4241

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2022-07-27 02:22:05 UTC
FEDORA-2022-cd870749c7 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2022-07-27 02:34:35 UTC
FEDORA-2022-c9687c4241 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.