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 a6f0493256c55c0db374a61e787fecbb5cd38437
Author: Alexandre Detiste <alexandre.deti...@gmail.com>
Date:   Sun Aug 6 22:20:26 2017 +0200

    make_template: make --lowercase work for InnoSetup archives too
---
 game_data_packager/make_template.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/game_data_packager/make_template.py 
b/game_data_packager/make_template.py
index 87c9032..8b0e34e 100644
--- a/game_data_packager/make_template.py
+++ b/game_data_packager/make_template.py
@@ -391,7 +391,7 @@ class GameData(object):
                         if line.startswith('id = '):
                             self.gog['path'] = '"%s"' % line.split('"')[1]
 
-    def add_one_innoextract(self,exe):
+    def add_one_innoextract(self,exe,lower):
         game = self.gog['game'] = GOG.get_id_from_archive(exe)
         if not game:
             game = os.path.basename(exe)
@@ -418,10 +418,10 @@ class GameData(object):
                  universal_newlines=True,
                  cwd=tmp)
         self.longname = log.split('\n')[0].split('"')[1]
-        self.add_one_dir(os.path.join(tmp, 'app'), game=game, 
lang=guess_lang(exe))
+        self.add_one_dir(os.path.join(tmp, 'app'), game=game, 
lang=guess_lang(exe), lower=lower)
         rm_rf(tmp)
 
-        self.add_archive(exe, lower=False)
+        self.add_archive(exe, lower)
         self.file_data[os.path.basename(exe)] = 
dict(unpack=dict(format='innoextract'),provides=['file1','file2'])
 
     def add_one_deb(self,deb,lower):
@@ -766,7 +766,7 @@ def main():
         elif basename.startswith('setup_') and arg.endswith('.exe'):
             if not which('innoextract'):
                 exit('Install innoextract')
-            gamedata.add_one_innoextract(arg)
+            gamedata.add_one_innoextract(arg, lower=args.lower)
         elif basename.startswith('gog_') and arg.endswith('.sh'):
             gamedata.add_one_gog_sh(arg)
         else:

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

Reply via email to