[game-data-packager] 02/03: scummvm: let packages override gameid if needed
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Wed May 13 17:48:59 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 c981a82b996a0816301b567a0b8d6be69f7c87ea
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Wed May 13 19:46:42 2015 +0200
scummvm: let packages override gameid if needed
without this Gobliiins demo crash on 5th screen
---
game_data_packager/games/scummvm_common.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/game_data_packager/games/scummvm_common.py b/game_data_packager/games/scummvm_common.py
index b05aca5..90c5bb2 100644
--- a/game_data_packager/games/scummvm_common.py
+++ b/game_data_packager/games/scummvm_common.py
@@ -42,6 +42,10 @@ class ScummvmGameData(GameData):
if self.genre is None:
self.genre = 'Adventure'
+ def _populate_package(self, package, d):
+ super(ScummvmGameData, self)._populate_package(package, d)
+ package.gameid = d.get('gameid')
+
def fill_extra_files(self, package, destdir):
super(ScummvmGameData, self).fill_extra_files(package, destdir)
if package.type == 'expansion':
@@ -55,7 +59,7 @@ class ScummvmGameData(GameData):
encoding='utf-8'),
open(os.path.join(appdir, '%s.desktop' % package.name),
'w', encoding='utf-8'),
- GAME=self.gameid,
+ GAME=package.gameid or self.gameid,
PATH=package.install_to,
LONG=(package.longname or self.longname))
--
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