[game-data-packager] 02/02: be desktop-file-validate -compliant
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Mon Nov 9 12:11:37 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 8fcb5a86fe0187265a1ddfe0b0a876ff71744de5
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Mon Nov 9 13:11:13 2015 +0100
be desktop-file-validate -compliant
---
game_data_packager/games/doom_common.py | 4 ++--
game_data_packager/games/ecwolf_common.py | 2 +-
game_data_packager/games/residualvm_common.py | 2 +-
game_data_packager/games/scummvm_common.py | 2 +-
game_data_packager/games/z_code.py | 4 ++--
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/game_data_packager/games/doom_common.py b/game_data_packager/games/doom_common.py
index 93e6fd2..98fe7c8 100644
--- a/game_data_packager/games/doom_common.py
+++ b/game_data_packager/games/doom_common.py
@@ -160,8 +160,8 @@ class DoomTask(PackagingTask):
entry['Icon'] = desktop_file
entry['Terminal'] = 'false'
entry['Type'] = 'Application'
- entry['Categories'] = 'Game'
- entry['Keywords'] = wad_base
+ entry['Categories'] = 'Game;'
+ entry['Keywords'] = wad_base + ';'
with open(os.path.join(appdir, '%s.desktop' % desktop_file),
'w', encoding='utf-8') as output:
diff --git a/game_data_packager/games/ecwolf_common.py b/game_data_packager/games/ecwolf_common.py
index 8e374ab..d9bc702 100644
--- a/game_data_packager/games/ecwolf_common.py
+++ b/game_data_packager/games/ecwolf_common.py
@@ -92,7 +92,7 @@ class EcwolfTask(PackagingTask):
entry['Icon'] = package.name
entry['Terminal'] = 'false'
entry['Type'] = 'Application'
- entry['Categories'] = 'Game'
+ entry['Categories'] = 'Game;'
appdir = os.path.join(destdir, 'usr/share/applications')
mkdir_p(appdir)
diff --git a/game_data_packager/games/residualvm_common.py b/game_data_packager/games/residualvm_common.py
index 2fdea18..120abc8 100644
--- a/game_data_packager/games/residualvm_common.py
+++ b/game_data_packager/games/residualvm_common.py
@@ -107,7 +107,7 @@ class ResidualvmTask(PackagingTask):
entry['Icon'] = icon
entry['Terminal'] = 'false'
entry['Type'] = 'Application'
- entry['Categories'] = 'Game'
+ entry['Categories'] = 'Game;'
entry['Exec'] = 'residualvm -p /%s %s' % (package.install_to,
self.game.gameid)
with open(os.path.join(appdir, '%s.desktop' % package.name),
diff --git a/game_data_packager/games/scummvm_common.py b/game_data_packager/games/scummvm_common.py
index 5b51dda..0b683c6 100644
--- a/game_data_packager/games/scummvm_common.py
+++ b/game_data_packager/games/scummvm_common.py
@@ -127,7 +127,7 @@ class ScummvmTask(PackagingTask):
entry['Icon'] = icon
entry['Terminal'] = 'false'
entry['Type'] = 'Application'
- entry['Categories'] = 'Game;%sGame' % self.game.genre.replace(' ','')
+ entry['Categories'] = 'Game;%sGame;' % self.game.genre.replace(' ','')
gameid = package.gameid or self.game.gameid
if len(package.langs) == 1:
entry['Exec'] = 'scummvm -p /%s %s' % (package.install_to, gameid)
diff --git a/game_data_packager/games/z_code.py b/game_data_packager/games/z_code.py
index 2c6f501..7f244a8 100644
--- a/game_data_packager/games/z_code.py
+++ b/game_data_packager/games/z_code.py
@@ -56,7 +56,7 @@ class ZCodeTask(PackagingTask):
desktop['Desktop Entry'] = {}
entry = desktop['Desktop Entry']
entry['Type'] = 'Application'
- entry['Categories'] = 'Game'
+ entry['Categories'] = 'Game;'
entry['GenericName'] = self.game.genre + ' Game'
entry['Name'] = package.longname or self.game.longname
if (PACKAGE_CACHE.is_installed('frotz') and
@@ -77,7 +77,7 @@ class ZCodeTask(PackagingTask):
entry['Icon'] = 'utilities-terminal'
if package.aliases:
- entry['Keywords'] = ';'.join(package.aliases)
+ entry['Keywords'] = ';'.join(package.aliases) + ';'
with open(os.path.join(appdir, '%s.desktop' % package.name),
'w', encoding='utf-8') as output:
--
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