[game-data-packager] 01/01: h2g2: add alias
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Mon Mar 16 00:06:18 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 821b213fa771ed9a554325af4078a207208a8f9f
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Mon Mar 16 01:05:12 2015 +0100
h2g2: add alias
---
data/hhgg.yaml | 1 +
game_data_packager/games/z_code.py | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/data/hhgg.yaml b/data/hhgg.yaml
index bf623b0..908f602 100644
--- a/data/hhgg.yaml
+++ b/data/hhgg.yaml
@@ -5,6 +5,7 @@ copyright: © 1984 Infocom
packages:
hhgg-data:
+ aliases: [h2g2]
install:
- hhgg.z3
# no tea
diff --git a/game_data_packager/games/z_code.py b/game_data_packager/games/z_code.py
index 19cf020..de5c744 100644
--- a/game_data_packager/games/z_code.py
+++ b/game_data_packager/games/z_code.py
@@ -58,6 +58,8 @@ class ZCodeGameData(GameData):
entry['TryExec'] = engine
arg = '/' + package.install_to + '/' + list(package.install)[0]
entry['Exec'] = engine + ' ' + arg
+ if package.aliases:
+ entry['Keywords'] = ';'.join(package.aliases)
with open(os.path.join(appdir, '%s.desktop' % package.name),
'w', encoding='utf-8') as output:
@@ -69,6 +71,6 @@ class ZCodeGameData(GameData):
'a', encoding='utf-8') as o:
o.write('%s: desktop-command-not-in-package '
'usr/share/applications/%s.desktop %s\n'
- % (package.name, package.name, self.engine))
+ % (package.name, package.name, engine))
GAME_DATA_SUBCLASS = ZCodeGameData
--
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