[game-data-packager] 01/01: make-template: check for DirectX in case-insenstive way

Alexandre Detiste detiste-guest at moszumanska.debian.org
Fri Apr 24 10:11:54 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 0865f95733571f27265bb81f622be8701d333b5a
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Fri Apr 24 12:11:01 2015 +0200

    make-template: check for DirectX in case-insenstive way
---
 game_data_packager/make_template.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/game_data_packager/make_template.py b/game_data_packager/make_template.py
index 052d711..bb7a81e 100644
--- a/game_data_packager/make_template.py
+++ b/game_data_packager/make_template.py
@@ -87,13 +87,14 @@ def do_one_dir(destdir,lower):
     has_dosbox = False
 
     for dirpath, dirnames, filenames in os.walk(destdir):
-        if dirpath.endswith('/directx'):
+        dir_l = dirpath.lower()
+        if dir_l.endswith('/directx'):
             logger.warning('ignoring DirectX runtime at %s' % dirpath)
             continue
-        if dirpath.endswith('/data.now'):
+        if dir_l.endswith('/data.now'):
             logger.warning('ignoring Sold Out runtime at %s' % dirpath)
             continue
-        if '/directx/' in dirpath or '/data.now/' in dirpath:
+        if '/directx/' in dir_l or '/data.now/' in dir_l:
             continue
 
         for fn in filenames:

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