[game-data-packager] 01/02: make_template: ignore even more GOG stuff
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Sat Jun 13 14:46:58 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 9ea435b314cca3d98da8a752e213ef697e47b1b5
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Sat Jun 13 15:44:38 2015 +0200
make_template: ignore even more GOG stuff
---
game_data_packager/make_template.py | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/game_data_packager/make_template.py b/game_data_packager/make_template.py
index 27a572a..cadb768 100644
--- a/game_data_packager/make_template.py
+++ b/game_data_packager/make_template.py
@@ -296,14 +296,21 @@ class GameData(object):
if entry.isfile():
hf = HashedFile.from_file(deb + '//data.tar.*//' + name,
fsys_tarfile.extractfile(entry))
- if os.path.splitext(name.lower())[1] in ('.exe', '.bat'):
+ name_l = name.lower()
+ basename_l = os.path.basename(name_l)
+
+ if os.path.splitext(name_l)[1] in ('.exe', '.bat'):
logger.warning('ignoring dos/windows binary %s' % name)
continue
+ elif 'support/gog' in name_l or os.path.basename(name_l) in (
+ 'start.sh', 'uninstall.sh'):
+ logger.warning('ignoring GOG stuff %s' % name)
+ continue
elif name.startswith('opt/') and is_license(name):
- name = os.path.basename(name).lower()
+ name = basename_l
self.license.add(name)
elif name.startswith('opt/') and is_doc(name):
- name = os.path.basename(name).lower()
+ name = basename_l
self.optional.add(name)
self.files['files'][name] = dict(install_to='$docdir')
elif (install_to is not None and
--
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