Skip to content

WIP: Fix up handling of "or-later" license variants

Andreas Rottmann requested to merge (removed):mr/or-later-licenses into master

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.

Merge request reports

Loading