[game-data-packager] 04/10: better game longname defaulting
Simon McVittie
smcv at debian.org
Tue Jan 20 21:52:19 UTC 2015
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch master
in repository game-data-packager.
commit 6f0efb7a035e475cb1c2ba42145597dc028720e3
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Mon Jan 19 11:22:54 2015 +0100
better game longname defaulting
this makes explicitely stating longname optional
for games with simple name like Tyrian
---
data/tyrian.yaml | 1 -
lib/game_data_packager/__init__.py | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/data/tyrian.yaml b/data/tyrian.yaml
index 0cb6704..cea848d 100644
--- a/data/tyrian.yaml
+++ b/data/tyrian.yaml
@@ -1,7 +1,6 @@
%YAML 1.2
---
shortname: tyrian
-longname: Tyrian
help_text: |
The full version of Tyrian can be downloaded at no cost.
diff --git a/lib/game_data_packager/__init__.py b/lib/game_data_packager/__init__.py
index 5a36064..131aace 100644
--- a/lib/game_data_packager/__init__.py
+++ b/lib/game_data_packager/__init__.py
@@ -408,7 +408,7 @@ class GameData(object):
self.shortname = shortname
# The formal name of the game, e.g. Quake III Arena
- self.longname = shortname
+ self.longname = shortname.title()
# A temporary directory.
self.workdir = workdir
--
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