[game-data-packager] 01/01: fix two remaining calls to not anymore existing consider_zip()

Alexandre Detiste detiste-guest at moszumanska.debian.org
Fri Dec 25 08:38:09 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 652c9d5d58854a345169eeefb1fd8549c9bd531d
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Fri Dec 25 09:37:29 2015 +0100

    fix two remaining calls to not anymore existing consider_zip()
    
    pyflakes
---
 game_data_packager/build.py | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index 87ee643..a552e86 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -27,7 +27,6 @@ import shutil
 import stat
 import subprocess
 import sys
-import tarfile
 import tempfile
 import time
 import urllib.request
@@ -586,8 +585,8 @@ class PackagingTask(object):
                            '  %-9s %s %s\n'
                            '  %s  %s\n' % (size, hashes.md5, basename, hashes.sha1, basename))
             if basename.startswith('gog_') and extension == '.sh':
-                with zipfile.ZipFile(path, 'r') as zf:
-                    self.consider_zip(path, zf)
+                with ZipUnpacker(path) as unpacker:
+                    self.consider_stream(path, unpacker)
             elif basename.startswith('setup_') and extension == '.exe':
                 version = check_output(['innoextract', '-v', '-s'],
                         universal_newlines=True)
@@ -613,8 +612,8 @@ class PackagingTask(object):
             # or the MojoSetup installers provided by GOG.com
             if (extension.lower() in ('.zip', '.apk')
                or (basename.startswith('gog_') and extension == '.sh')):
-                with zipfile.ZipFile(path, 'r') as zf:
-                    self.consider_zip(path, zf)
+                with ZipUnpacker(path) as unpacker:
+                    self.consider_stream(path, unpacker)
             elif extension.lower() == '.deb' and which('dpkg-deb'):
                 with subprocess.Popen(['dpkg-deb', '--fsys-tarfile', path],
                             stdout=subprocess.PIPE) as fsys_process:

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