[game-data-packager] 02/12: make_template: ignore dos/windows binaries

Simon McVittie smcv at debian.org
Sat Jan 24 17:56:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch master
in repository game-data-packager.

commit 0f7824d0addb135a7d336c28bd61c52c5a22c1bf
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Sat Jan 24 09:23:14 2015 +0100

    make_template: ignore dos/windows binaries
    
    this makes most sense, if those are ever needed (?),
    they can be added back manually
---
 game_data_packager/make_template.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/game_data_packager/make_template.py b/game_data_packager/make_template.py
index d5b7dda..4237878 100644
--- a/game_data_packager/make_template.py
+++ b/game_data_packager/make_template.py
@@ -46,6 +46,8 @@ def do_one_dir(destdir):
 
             if os.path.isdir(path):
                 continue
+            elif os.path.splitext(fn.lower())[1] in ('.exe', '.ovl', '.dll'):
+                logger.warning('ignoring dos/windows binary at %s' % path)
             elif os.path.islink(path):
                 package.setdefault('symlinks', {})[name] = os.path.realpath(path).lstrip('/')
             elif os.path.isfile(path):

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