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 15bfef8f1cc5beaaf2c0e8e33b7968b87a8c581a Author: Alexandre Detiste <[email protected]> Date: Tue Jun 2 14:58:27 2015 +0200 list packages available when run with "GDP $game --help" --- debian/changelog | 1 + game_data_packager/__init__.py | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/debian/changelog b/debian/changelog index 166181d..c9be53e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,7 @@ game-data-packager (42) UNRELEASED; urgency=medium * add support for Leisure Suit Larry 1,2,3,5&6 * add support for Compet-N PWAD's (Closes: #776061) * only load actually needed YAML files (Closes: #779937) + * improve 'GDP $game --help' (Closes: #784563) -- Simon McVittie <[email protected]> Sun, 03 May 2015 14:34:00 +0200 diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py index c9699b9..806695c 100644 --- a/game_data_packager/__init__.py +++ b/game_data_packager/__init__.py @@ -734,6 +734,21 @@ class GameData(object): 'resource.1_106_cd' ), (self.shortname, wanted.name) + if len(self.packages) > 1: + prepend = '\npackages possible for this game:\n' + help = [] + for package in self.packages.values(): + type = { 'demo' : 1, + 'full' : 2, + 'expansion' : 3}.get(package.type) + help.append({ 'type' : type, + 'year' : package.copyright or self.copyright, + 'name' : package.name, + 'longname': package.longname or self.longname}) + for h in sorted(help, key=lambda k: (k['type'], k['year'][2:6], k['name'])): + prepend += " %-40s %s\n" % (h['name'],h['longname']) + self.help_text = prepend + '\n' + self.help_text + # advertise where to buy games # if it's not already in the help_text gog_url = self.gog.get('url') -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

