[game-data-packager] 06/18: add assert to find all extraneous look_for:

Alexandre Detiste detiste-guest at moszumanska.debian.org
Thu Jun 18 09:07:52 UTC 2015


This is an automated email from the git hooks/post-receive script.

detiste-guest pushed a commit to branch master
in repository game-data-packager.

commit 66c64b46dbfc098e12d46b744c96e73fb2029dda
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Thu Jun 18 10:49:45 2015 +0200

    add assert to find all extraneous look_for:
---
 game_data_packager/__init__.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index d6ad6ad..7685488 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -926,6 +926,8 @@ class GameData(object):
                 setattr(f, k, kwargs[k])
 
             assert 'optional' not in data, filename
+            if 'look_for' in data and 'install_as' in data:
+                assert data['look_for'] != [data['install_as']], filename
             for k in (
                     'alternatives',
                     'distinctive_name',

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