[game-data-packager] 08/51: GameData: Format copyright notice and help text as YAML literals

Simon McVittie smcv at debian.org
Fri Dec 29 01:23:34 UTC 2017


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 458e0e77a5f4d434398ffbe0ad959987b1c30779
Author: Simon McVittie <smcv at debian.org>
Date:   Tue Dec 26 16:57:06 2017 +0000

    GameData: Format copyright notice and help text as YAML literals
    
    Signed-off-by: Simon McVittie <smcv at debian.org>
---
 game_data_packager/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index e34dbd0..a5277a4 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -31,7 +31,7 @@ import zipfile
 import yaml
 
 from .build import (PackagingTask)
-from .data import (FileGroup, Package, WantedFile)
+from .data import (FileGroup, Package, WantedFile, YamlLiteral)
 from .packaging import (NoPackaging)
 from .paths import (DATADIR)
 from .util import ascii_safe
@@ -425,7 +425,7 @@ class GameData(object):
                 ):
             v = getattr(self, k)
             if v is not None:
-                ret[k] = v
+                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



More information about the Pkg-games-commits mailing list