[game-data-packager] 36/51: GameData.to_data: Don't print empty groups

Simon McVittie smcv at debian.org
Fri Dec 29 01:23:37 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 4f046ce2238e2d1fd4d7cfda97e00b4b24e60f23
Author: Simon McVittie <smcv at debian.org>
Date:   Thu Dec 28 18:19:48 2017 +0000

    GameData.to_data: Don't print empty groups
    
    Signed-off-by: Simon McVittie <smcv at debian.org>
---
 game_data_packager/game.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/game_data_packager/game.py b/game_data_packager/game.py
index 342bed6..ae7e5c3 100644
--- a/game_data_packager/game.py
+++ b/game_data_packager/game.py
@@ -372,6 +372,9 @@ class GameData(object):
             if g.ignorable and not include_ignorable:
                 continue
 
+            if not g.group_members:
+                continue
+
             groups[name] = g.to_data(
                 expand=expand, files=self.files,
                 include_ignorable=include_ignorable)

-- 
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