[game-data-packager] 01/01: ecoquest1: let non-French users package the -fr-data .deb ...

Alexandre Detiste detiste-guest at moszumanska.debian.org
Tue Oct 6 22:48:38 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 d4934bea4948052f937a435807d88f7e4e8ec464
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Wed Oct 7 00:47:37 2015 +0200

    ecoquest1: let non-French users package the -fr-data .deb ...
    
    as this .deb also provide an English version
---
 data/ecoquest1.yaml         | 6 ++++++
 game_data_packager/build.py | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/data/ecoquest1.yaml b/data/ecoquest1.yaml
index 3526927..b0362a5 100644
--- a/data/ecoquest1.yaml
+++ b/data/ecoquest1.yaml
@@ -5,6 +5,12 @@ plugin: scummvm_common
 wiki: EcoQuest
 gameid: ecoquest
 
+help_text: |
+  The French version can also be played in English.
+
+  The '/usr/games/ecoquest1-fr' launcher script will default to English on
+  systems without 'fr' specified in $LANGUAGE or $LANG environment variables.
+
 packages:
   ecoquest1-en-data:
     debian:
diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index 86d56b3..a679c42 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -2124,7 +2124,7 @@ class PackagingTask(object):
             # keep only prefered language for this virtual package
             virtual = package.debian.get('provides')
             if virtual:
-                score = lang_score(package.lang)
+                score = max(set(lang_score(l) for l in package.langs))
                 if score == 0:
                     logger.info('will not produce "%s" '
                                 'because %s is not in LANGUAGE selection',

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