[game-data-packager] 02/02: make_template: fix filtering of .cfg/.ini/.drv ...

Alexandre Detiste detiste-guest at moszumanska.debian.org
Sat Oct 17 07:34:32 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 f2f69295afadecb2c6d1521bb5dac4e930fc8c64
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Sat Oct 17 09:33:05 2015 +0200

    make_template: fix filtering of .cfg/.ini/.drv ...
---
 game_data_packager/make_template.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/game_data_packager/make_template.py b/game_data_packager/make_template.py
index f9a8517..983b648 100644
--- a/game_data_packager/make_template.py
+++ b/game_data_packager/make_template.py
@@ -263,7 +263,7 @@ class GameData(object):
                         self.doc.add(out_name)
                         self.package['doc'].append(out_name)
                     # most of the times these files are not needed
-                    elif fn.split('.')[-1] in ('cfg', 'cmd', 'drv', 'ico', 'ini'):
+                    elif fn.lower().split('.')[-1] in ('cfg', 'cmd', 'com', 'drv', 'ico', 'ini'):
                         self.optional.add(out_name)
                         self.package['optional'].append(out_name)
                     else:
@@ -528,7 +528,6 @@ class GameData(object):
                 print('  %s  %s' % (self.sha1[filename], filename))
 
         print('...')
-        print('')
 
 def do_one_file(name,lower):
     hf = HashedFile.from_file(name, open(name, 'rb'))

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