[game-data-packager] 04/20: Add the ability for individual packages to have a longname
Simon McVittie
smcv at debian.org
Mon Jan 12 01:07:07 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 b7859ba1f59c8948828b4907217082ab6c2f643e
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Sun Jan 11 15:24:38 2015 +0000
Add the ability for individual packages to have a longname
[extracted from a larger commit on a-detiste/steam -smcv]
---
data/spear-of-destiny.yaml | 2 ++
lib/game_data_packager/__init__.py | 6 ++++++
2 files changed, 8 insertions(+)
diff --git a/data/spear-of-destiny.yaml b/data/spear-of-destiny.yaml
index b85bae1..f11fbf6 100644
--- a/data/spear-of-destiny.yaml
+++ b/data/spear-of-destiny.yaml
@@ -62,6 +62,7 @@ packages:
spear-of-destiny-mission2-data:
type: expansion
+ longname: "Spear of Destiny - Mission 2: Return to Danger"
install_to: usr/share/games/wolf3d
install_files_from_cksums: |
38338034 135024 gamemaps.sd2
@@ -70,6 +71,7 @@ packages:
spear-of-destiny-mission3-data:
type: expansion
+ longname: "Spear of Destiny - Mission 3: Ultimate Challenge"
install_to: usr/share/games/wolf3d
install_files_from_cksums: |
1656044045 148534 gamemaps.sd3
diff --git a/lib/game_data_packager/__init__.py b/lib/game_data_packager/__init__.py
index 11f4678..d64d244 100644
--- a/lib/game_data_packager/__init__.py
+++ b/lib/game_data_packager/__init__.py
@@ -215,6 +215,9 @@ class GameDataPackage(object):
# The name of the binary package
self.name = name
+ # The optional marketing name of this version
+ self.longname = None
+
# Where we install files.
# For instance, if this is 'usr/share/games/quake3' and we have
# a WantedFile with install_as='baseq3/pak1.pk3' then we would
@@ -461,6 +464,9 @@ class GameData(object):
if 'type' in d:
package.type = d['type']
+ if 'longname' in d:
+ package.longname = d['longname']
+
if 'symlinks' in d:
package.symlinks = d['symlinks']
--
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