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 ef4dc6c7f352144fbe92168535e48aee0ea8d3f6 Author: Alexandre Detiste <alexandre.deti...@gmail.com> Date: Fri Jun 19 13:38:28 2015 +0200 zipfile: match on basename for unknown & quircky archives --- game_data_packager/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py index 7685488..fbca4d8 100644 --- a/game_data_packager/__init__.py +++ b/game_data_packager/__init__.py @@ -1207,9 +1207,11 @@ class GameData(object): if provider is None: try_to_unpack = self.files should_provide = set() + distinctive_dirs = False else: try_to_unpack = provider.provides should_provide = set(try_to_unpack) + distinctive_dirs = provider.unpack.get('distinctive_dirs', True) for entry in zf.infolist(): if not entry.file_size: @@ -1230,6 +1232,8 @@ class GameData(object): match_path = '/' + entry.filename.lower() for lf in wanted.look_for: + if not distinctive_dirs: + lf = os.path.basename(lf) if match_path.endswith('/' + lf): should_provide.discard(filename) -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git _______________________________________________ Pkg-games-commits mailing list Pkg-games-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits