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

Sort output from ci-license-scan


As in some cases there are lot of license issues in a package, it is useful
to have the output sorted.

Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
parent 741b43a6
No related branches found
No related tags found
1 merge request!241Backport: Sort output from ci-license-scan
Pipeline #339178 passed
......@@ -452,10 +452,10 @@ def main():
if unknown_licensed or bad_licenses:
print("\nERROR:", file=sys.stderr)
should_fail = False
for l in unknown_licensed:
for l in sorted(unknown_licensed):
print(f" UNKNOWN license entry found: {l}", file=sys.stderr)
should_fail = args.fail_on_unknown
for l in bad_licenses:
for l in sorted(bad_licenses):
print(f" Blacklisted license entry found: {l}", file=sys.stderr)
should_fail = True
if should_fail:
......
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