[game-data-packager] 01/01: check_unpacker: whitelist instead of blacklist

Alexandre Detiste detiste-guest at moszumanska.debian.org
Wed Apr 1 17:39:50 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 c36c9bacfb8b501d881db5849428c1949ea67e3b
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Wed Apr 1 19:37:35 2015 +0200

    check_unpacker: whitelist instead of blacklist
    
    unshield & arj were missing from list,
    more to come in the future (cabextract,unwise...)
---
 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 7c50835..3f893ae 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -2471,7 +2471,7 @@ class GameData(object):
 
         fmt = wanted.unpack['format']
 
-        if fmt in ('id-shr-extract', 'lha', 'unzip', 'innoextract', '7z'):
+        if fmt not in ('cat', 'dos2unix', 'tar.gz', 'tar.bz2', 'tar.xz', 'zip'):
             if which(fmt) is None:
                 logger.warning('cannot unpack "%s": tool "%s" is not ' +
                         'installed', wanted.name, fmt)

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