[game-data-packager] 01/10: make-template: also repack from '/opt/GOG Games/...'
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Sun Oct 4 07:51:11 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 806fd732b1c510eb999dea3905d7c9e394ce3044
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Sun Oct 4 09:14:02 2015 +0200
make-template: also repack from '/opt/GOG Games/...'
---
game_data_packager/make_template.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/game_data_packager/make_template.py b/game_data_packager/make_template.py
index 694186d..bc52b23 100644
--- a/game_data_packager/make_template.py
+++ b/game_data_packager/make_template.py
@@ -328,6 +328,7 @@ class GameData(object):
there = name[len('opt/GOG Games/'):]
there = there.split('/', 1)[0]
install_to = ('opt/GOG Games/' + there)
+ self.try_repack_from.append('/' + install_to)
if entry.isfile():
hf = HashedFile.from_file(deb + '//data.tar.*//' + name,
@@ -383,7 +384,12 @@ class GameData(object):
print('longname: %s' % self.longname)
print('copyright: © 1970 FIXME')
if self.try_repack_from:
- print('try_repack_from: %s' % self.try_repack_from)
+ if len(self.try_repack_from) == 1:
+ print('try_repack_from: %s' % self.try_repack_from)
+ else:
+ print('try_repack_from:')
+ for path in sorted(self.try_repack_from):
+ print('- "%s"' % path)
if self.plugin:
print('plugin: %s' % self.plugin)
if self.gog_url:
--
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