[game-data-packager] 01/01: boilerplate generator: return early if long_description is set
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Tue May 10 14:48:29 UTC 2016
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 375a33f012ef6f560f3488b2b1992dcf1c976569
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Tue May 10 16:47:40 2016 +0200
boilerplate generator: return early if long_description is set
---
game_data_packager/build.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index 9edef77..894ed9b 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -1736,6 +1736,11 @@ class PackagingTask(object):
else:
short_desc = longname
+ if package.long_description is not None:
+ long_desc = package.long_description
+ long_desc = long_desc.rstrip('\n')
+ return (short_desc, long_desc)
+
long_desc = 'This package was built using game-data-packager.\n'
if package.component == 'local':
long_desc += 'It contains proprietary game data and must not be redistributed.\n'
@@ -1748,11 +1753,6 @@ class PackagingTask(object):
long_desc += 'It contains free game data and may be redistributed.\n'
long_desc += '.\n'
- if package.long_description is not None:
- long_desc = package.long_description
- long_desc = long_desc.rstrip('\n')
- return (short_desc, long_desc)
-
if package.description:
for line in package.description.splitlines():
line = line.rstrip() or '.'
--
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