Skip to content
Snippets Groups Projects
Commit fe708bd5 authored by Walter Lozano's avatar Walter Lozano
Browse files

ci-license-scan: Treat empty license as unknown


Due to an upstream bug scan-copyrights reports license as empty in some
cases. Workaround this issue by treating empty license in the same way
unknown license are treated.

Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
parent 3e8a6e99
No related branches found
No related tags found
2 merge requests!245ci-license-scan: Treat empty license as unknown,!93WIP: documentation-builder: Rebase on Apertis instead of Debian Buster
Pipeline #285794 passed
......@@ -400,7 +400,7 @@ def main():
for p in c.all_files_paragraphs():
if p.license:
for f in p.files:
if p.license.synopsis == 'UNKNOWN':
if p.license.synopsis in ['UNKNOWN', '']:
copyright, license = detect_license_for(f, debian_copyrights)
if copyright is not None and license is not None:
if license.synopsis.rstrip('+').lower() in disallowlist:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment