#795383 please add a License field parser to the copyright module

#795383#5
Date:
2015-08-13 15:04:49 UTC
From:
To:
The debian.copyright module returns the content of the License field as a
string, matching the literal value written down in the debian/copyright file.

It would be nice (and will avoid duplicate work) if the module would offer a
way to traverse the content of the License field as an AST, conformant to the
semantics of machine-readable debian/copyright files.

The AST should include at the very minimum boolean and/or combination of
licenses (implementing the semantics of "," properly). Additionally, the AST
could distinguish between trailing "+" for "or later" license variants, and
support "with" for license exceptions.

FWIW, Debsources would use this feature for rendering machine-readable
copyright fiels if it were available.

Cheers.