The source project of this merge request has been removed.
WIP: Fix up handling of "or-later" license variants
Before this change, debcargo
would:
-
Attempt to split versions on the "or" occurring inside the "-or-later" suffix.
This is rectified by adjusting the regex to insist on a space left and right of the "and" and "or" operators.
-
Not realize that "-or-later" licenses are actually variants of licenses it knows about, and hence incorrectly categorize them as "unknown".
Note that I have only tested this superficially, hence the "WIP". I just wanted to get the code out there, to check if there's something fundamentally wrong with my approach.