[game-data-packager] 01/01: GOG: add catch-all for MojoSetup installers (processed as .zip file)

Alexandre Detiste detiste-guest at moszumanska.debian.org
Wed Sep 16 09:40:26 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 375e66fe76c4d460b672f4387febe9c379cc79df
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Wed Sep 16 11:39:36 2015 +0200

    GOG: add catch-all for MojoSetup installers (processed as .zip file)
---
 game_data_packager/__init__.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index 1cf6e85..068ceb6 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -1209,7 +1209,9 @@ class GameData(object):
             logger.warning('file "%s" does not match any known file', path)
             # ... still G-D-P should try to process any random .zip
             # file thrown at it, like the .zip provided by GamersHell
-            if os.path.splitext(path)[1].lower() in ('.zip', '.apk'):
+            # or the MojoSetup installers provided by GOG.com
+            if (os.path.splitext(path)[1].lower() in ('.zip', '.apk')
+             or (os.path.basename(path).startswith('gog_') and path.endswith('.sh')) ):
                 with zipfile.ZipFile(path, 'r') as zf:
                     self.consider_zip(path, zf)
 

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