aboutcode-org / aboutcode-org/scancode-toolkit

Dual-license "X or Y" statement detected as AND instead of OR

オープン
#4,982 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Python
スター
2.6k
フォーク
791
平均マージ
1日 12時間
マージ済み PR(30日)
5

説明

### Description

Dual-license statement "X or Y" is detected as X AND Y instead of X OR Y.
https://github.com/g-truc/glm/blob/master/copying.txt contains:
`GLM is licensed under The Happy Bunny License or MIT License`
followed by both full license texts. ScanCode outputs:
`"detected_license_expression_spdx": "LicenseRef-scancode-happy-bunny AND MIT"`

Expected: `LicenseRef-scancode-happy-bunny OR MIT`

### How To Reproduce

```
curl -s "https://raw.githubusercontent.com/g-truc/glm/master/copying.txt" -o copying.txt
scancode --license --json-pp result.json copying.txt
cat result.json | grep detected_license_expression_spdx
```

### System configuration

* OS: macOS
* ScanCode version: 32.5.0
* Installation: pip

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。