[game-data-packager] 02/10: reword automatic description
Simon McVittie
smcv at debian.org
Tue Jan 20 21:52:18 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 0678b3ac2ceb50a60b152a7b6e166735b00547b8
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Sun Jan 18 20:10:51 2015 +0100
reword automatic description
---
lib/game_data_packager/__init__.py | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/lib/game_data_packager/__init__.py b/lib/game_data_packager/__init__.py
index 950d7ec..92b8c8f 100644
--- a/lib/game_data_packager/__init__.py
+++ b/lib/game_data_packager/__init__.py
@@ -1589,20 +1589,27 @@ class GameData(object):
control['Version'] = package.version
if 'Description' not in control:
- if package.longname:
- longname = package.longname
+ longname = package.longname or self.longname
+
+ if package.expansion_for:
+ short_desc = 'extra data for ' + self.longname
else:
- longname = self.longname
+ short_desc = 'data for ' + longname
long_desc = ' This package was built using game-data-packager. It contains\n'
long_desc += ' proprietary game data and must not be redistributed.\n'
long_desc += ' .\n'
- long_desc += ' Game: ' + longname
+
+ if package.expansion_for:
+ long_desc += ' Expansion: ' + longname
+ else:
+ long_desc += ' Game: ' + longname
+
if engine:
long_desc += '\n .\n'
long_desc += ' Intended for use with: ' + engine
- control['Description'] = 'data for ' + longname + '\n' + long_desc
+ control['Description'] = short_desc + '\n' + long_desc
def get_control_template(self, package):
return os.path.join(DATADIR, package.name + '.control.in')
--
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