[game-data-packager] 01/01: reproducilbe: make babel.py output reproducible html

Alexandre Detiste detiste-guest at moszumanska.debian.org
Sat Jun 27 08:31:25 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 ecbb06ec7f03f4ee9600ab1120cea8f9b85e9918
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Sat Jun 27 10:29:53 2015 +0200

    reproducilbe: make babel.py output reproducible html
    
    needed to avoid useless uploads by "sitecopy",
    also needed if this html enventualy ends up in the .deb
---
 tools/babel.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/babel.py b/tools/babel.py
index 7faface..0ca1c44 100755
--- a/tools/babel.py
+++ b/tools/babel.py
@@ -51,12 +51,12 @@ if 'ru' not in langs:
 missing = {
   'nomouth': ['ru'],
   'rtcw': ['de','es','it'],
-  'waxworks': ['de','es','fr'],
+  'waxworks': ['es','fr'],
 }
 
 games = sorted(games, key=lambda k: (k['genre'], k['shortname'], k['longname']))
 
-langs_order = sorted(langs, key=langs.get, reverse=True)
+langs_order = [k for k, v in sorted(langs.items(), key=lambda kv: (-kv[1], kv[0]))]
 
 html = open('/home/tchet/Utilitaires/Homepage/babel.html', 'w', encoding='latin1')
 html.write('''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

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