[game-data-packager] 01/01: process unknown .apk android files like unknown .zip

Alexandre Detiste detiste-guest at moszumanska.debian.org
Fri Jul 3 11:31:38 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 00276e5c53eb0070c53b3847205922d3184e94bb
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Fri Jul 3 11:37:32 2015 +0200

    process unknown .apk android files like unknown .zip
    
    don't have a smartphone to test that in deep, but this work
    at least with Android package for "Super 3D Noah's Ark"
---
 game_data_packager/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index 80a3486..700481f 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -1150,7 +1150,7 @@ 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() == '.zip':
+            if os.path.splitext(path)[1].lower() in ('.zip', '.apk'):
                 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