[game-data-packager] 03/03: check_gog: tag which games are already owned
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Sat Jul 29 10:41:29 UTC 2017
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 5b30b3059d85cf94fea413cd5f0b37a728136792
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Sat Jul 29 12:39:44 2017 +0200
check_gog: tag which games are already owned
---
tools/check_gog.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tools/check_gog.py b/tools/check_gog.py
index 1e0e1b0..70e4070 100755
--- a/tools/check_gog.py
+++ b/tools/check_gog.py
@@ -22,10 +22,12 @@ import os
import subprocess
from game_data_packager import load_games
+from game_data_packager.gog import GOG
from distutils.version import LooseVersion
yaml_files = {}
owned_files = []
+owned_games = GOG.owned_games()
def decode_filename(archive):
game = archive[len('setup_')::]
@@ -53,8 +55,9 @@ for name, game in load_games(datadir='out').items():
if LooseVersion(version) > LooseVersion(yaml_files.get(supported, '0')):
yaml_files[supported] = version
if has_tags != has_archive and not is_removed:
- print('GOG metadata not in sync for %s. (has_tags: %s, has_archive: %s)'
- % (name, has_tags, has_archive))
+ owned = game.gog_download_name(package) in owned_games
+ print('GOG metadata not in sync for %s. (has_tags: %s, has_archive: %s, owned: %s)'
+ % (name, has_tags, has_archive, owned))
print('# Reading data from LGOGDOWNLOADER...')
cache = os.path.expanduser('~/.cache/lgogdownloader/gamedetails.json')
--
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