Skip to content
Snippets Groups Projects
Commit f874bb69 authored by Walter Lozano's avatar Walter Lozano Committed by Emanuele Aina
Browse files

Use simple yml style


In order to avoid issues with scan-copyrights not dealing with !!bool in
yaml files, switch to a simpler format.

This kind of issue was seen in packages that ship their own configuration
in d/fill.copyright.blanks.yml, and uses the skip (boolean) option,
which triggers an error an prevents the pipeline to succeed.

As the issue seems to be an upstream bug, as a workaround change the
default_style used by yaml dumper from | to the default one, which
does not add !!bool.

Previously the default_style | was needed as scan-copyright used
YAML::Tiny and it was not able to parse the files properly, however,
after switching to YAML::XS this doesn't seem to be an issue any more,
so default_style can be used with its default.

Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
parent cea1e89f
No related branches found
No related tags found
2 merge requests!242T8153: Use simple yml style,!93WIP: documentation-builder: Rebase on Apertis instead of Debian Buster
Pipeline #290777 passed
......@@ -300,7 +300,7 @@ def configure_scanner():
except:
pass
if copyright_overrides:
debian_copyright_overrides.write_text(yaml.safe_dump(copyright_overrides, default_style='|'))
debian_copyright_overrides.write_text(yaml.safe_dump(copyright_overrides))
class NullFilter(BufferedReader):
"""
......
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