[game-data-packager] 01/03: GOG: do not use 'id' reserved word

Alexandre Detiste detiste-guest at moszumanska.debian.org
Wed Nov 11 20:33:49 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 2ac8ac7dc1731247b8a506a26afc2c28595695a4
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Wed Nov 11 20:50:25 2015 +0100

    GOG: do not use 'id' reserved word
---
 game_data_packager/gog.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/game_data_packager/gog.py b/game_data_packager/gog.py
index fb4c1ff..c09ec86 100644
--- a/game_data_packager/gog.py
+++ b/game_data_packager/gog.py
@@ -136,8 +136,8 @@ def run_gog_meta_mode(parsed, games):
     found_packages = []
     for game, data in games.items():
         for package in data.packages.values():
-            id = data.gog_download_name(package)
-            if id is None or id not in owned:
+            gog_id = data.gog_download_name(package)
+            if gog_id is None or gog_id not in owned:
                 continue
             if lang_score(package.lang) == 0:
                 continue
@@ -154,7 +154,7 @@ def run_gog_meta_mode(parsed, games):
                 'package': package.name,
                 'installed': installed,
                 'longname': package.longname or data.longname,
-                'id': id,
+                'id': gog_id,
                })
     if not found_games:
         logger.error('No supported GOG.com games found')

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