[game-data-packager] 01/03: GOG: ignore leftover ~/.cache/lgogdownloader/
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Wed Sep 16 07:17:37 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 5d22bd79ef4d2526f61822ef66e9ec44299260ac
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Wed Sep 16 08:47:22 2015 +0200
GOG: ignore leftover ~/.cache/lgogdownloader/
---
game_data_packager/gog.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/game_data_packager/gog.py b/game_data_packager/gog.py
index 4d84226..5cdaccc 100644
--- a/game_data_packager/gog.py
+++ b/game_data_packager/gog.py
@@ -30,11 +30,13 @@ class Gog:
self.available = []
cache = os.path.expanduser('~/.cache/lgogdownloader/gamedetails.json')
- if os.path.isfile(cache):
+ if not which('lgogdownloader'):
+ pass
+ elif os.path.isfile(cache):
data = json.load(open(cache, encoding='utf-8'))
for key in data['games']:
self.available.append(key['gamename'])
- elif which('lgogdownloader'):
+ else:
try:
list = subprocess.check_output(['lgogdownloader', '--list'],
stdin=subprocess.DEVNULL,
--
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