[game-data-packager] 01/01: gamelist: linkify bugs

Alexandre Detiste detiste-guest at moszumanska.debian.org
Thu Sep 3 07:05:51 UTC 2015


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 ff302592bf73ac1b73d0c6e5de140427413303f4
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Thu Sep 3 09:05:44 2015 +0200

    gamelist: linkify bugs
---
 tools/babel.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tools/babel.py b/tools/babel.py
index f2974b9..4630930 100755
--- a/tools/babel.py
+++ b/tools/babel.py
@@ -87,7 +87,11 @@ with open('debian/TODO', 'r', encoding='utf8') as missing:
                 if 'a' <= char <= 'z' or '0' <= char <= '9':
                    shortname += char
             stats['shortname'] = shortname
-            stats['longname'] = line
+            if '#' not in line:
+                stats['longname'] = line
+            else:
+                longname, bug = line.split('#')
+                stats['longname'] = '%s <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%s">#%s</a>' % (longname, bug, bug)
             games.append(stats)
 
 games = sorted(games, key=lambda k: (k['genre'], k['shortname'], k['longname']))

-- 
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