gardenappl / vrms-arch

Virtual Richard M. Stallman for Arch Linux
BSD 3-Clause "New" or "Revised" License
13 stars 6 forks source link

Handle "AND" operator in licenses #15

Closed IsaacGerma closed 5 months ago

IsaacGerma commented 5 months ago

The "AND" operator is used for packages which are required to comply with multiple different licenses.

https://spdx.github.io/spdx-spec/v2.3/SPDX-license-expressions/#d43-conjunctive-and-operator

This change should be able to correctly identify free packages that list licenses with the "AND" operator.

gardenappl commented 5 months ago

I'll accept this for now, ideally this should handle the 'OR' operator as well, but this is better than what we have now anyway.

gardenappl commented 5 months ago

Just FYI I'm working on an SPDX expression parser now.

gardenappl commented 5 months ago

Just FYI I'm working on an SPDX expression parser now.

Actually, at this point I might end up rewriting this entire script, but that will come later.