[game-data-packager] 01/03: make-template: print hashes for 'gog_*.sh' files
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Fri Oct 16 07:08:55 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 34e1bd01d40ef543f1f2617c0d9f0ec85a2567ac
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Fri Oct 16 08:46:48 2015 +0200
make-template: print hashes for 'gog_*.sh' files
---
game_data_packager/make_template.py | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/game_data_packager/make_template.py b/game_data_packager/make_template.py
index 3e53d1b..f9a8517 100644
--- a/game_data_packager/make_template.py
+++ b/game_data_packager/make_template.py
@@ -139,14 +139,12 @@ class GameData(object):
return True
return False
- def add_one_file(self,name,lower):
+ def add_one_file(self, name, lower, is_content=True):
out_name = os.path.basename(name)
if lower:
out_name = out_name.lower()
- if out_name.startswith('setup_') and name.endswith('.exe'):
- pass
- elif name.endswith('.deb'):
+ if not is_content:
pass
elif is_license(name):
out_name = os.path.basename(out_name)
@@ -300,6 +298,7 @@ class GameData(object):
del self.package['license']
def add_one_zip(self,archive):
+ self.add_one_file(archive, lower=False, is_content=False)
# TODO
return
@@ -344,7 +343,7 @@ class GameData(object):
self.add_one_dir(os.path.join(tmp, 'app'), True, game=game, lang=guess_lang(exe))
os.system('rm -r ' + tmp)
- self.add_one_file(exe,False)
+ self.add_one_file(exe, lower=False, is_content=False)
self.files['files'][os.path.basename(exe)] = dict(unpack=dict(format='innoextract'),provides=['file1','file2'])
def add_one_deb(self,deb,lower):
@@ -700,7 +699,7 @@ def main():
elif arg.endswith('.deb'):
gamedata.add_one_deb(arg,args.lower)
if basename.startswith('gog_'):
- gamedata.add_one_file(arg,args.lower)
+ gamedata.add_one_file(arg, lower=args.lower)
gamedata.files['files'][basename] = dict(unpack=dict(format='deb'),
provides=['<stuff>'])
elif basename.startswith('setup_') and arg.endswith('.exe'):
@@ -713,7 +712,7 @@ def main():
do_one_file(arg,args.lower)
return
else:
- gamedata.add_one_file(arg,args.lower)
+ gamedata.add_one_file(arg, lower=args.lower)
gamedata.to_yaml()
--
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