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

ci-license-scan: Remove non ascii chars from debian override


The version of scan-copyrights from Trixie tries to parse the copyright
data to provide cleaner information. At the same time, this version
is more strict on the data use to fill debian/fill.copyright.blanks.yml,
and in case of non ascii characters the tool exits with error.

Since ci-license-scan fill the file with data, make sure that it only
adds ascii characters to the copyright.

Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
parent a3510971
No related branches found
No related tags found
No related merge requests found
......@@ -311,7 +311,9 @@ def configure_scanner():
if debian_license and "debian/" not in copyright_overrides:
copyright_overrides["debian/"] = {
"license": debian_license.synopsis,
"copyright": debian_copyright.strip(),
"copyright": re.sub(
r"[^\x0A,\x20-\x7E]", r"", debian_copyright
).strip(),
}
except Exception:
pass
......
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