aboutcode-org / aboutcode-org/scancode-toolkit

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

未关闭
#4,982 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
2.6k
派生
791
平均合并
1 天 12 小时
30 天内合并 PR
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 摘要。