This is an automated email from the git hooks/post-receive script. smcv pushed a commit to branch master in repository game-data-packager.
commit e6dd7db9aea05f0aa7a8cc6e9de3085b086a222b Author: Simon McVittie <s...@debian.org> Date: Fri Jan 12 11:00:30 2018 +0000 Package.to_data: Pretty-print copyright notice and long description They're a lot more readable in the output YAML if we represent them as literals. Signed-off-by: Simon McVittie <s...@debian.org> --- game_data_packager/data.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/game_data_packager/data.py b/game_data_packager/data.py index a1b9312..6d91a12 100644 --- a/game_data_packager/data.py +++ b/game_data_packager/data.py @@ -960,14 +960,11 @@ class Package(object): for k in ( 'copyright', - 'copyright_notice', - 'description', 'disks', 'engine', 'expansion_for', 'expansion_for_ext', 'longname', - 'long_description', 'short_description', 'url_misc', 'wiki', @@ -976,4 +973,13 @@ class Package(object): if v is not None: ret[k] = v + for k in ( + 'copyright_notice', + 'description', + 'long_description', + ): + v = getattr(self, k) + if v is not None: + ret[k] = YamlLiteral(v) + return ret -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git _______________________________________________ Pkg-games-commits mailing list Pkg-games-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits