[game-data-packager] 02/03: lang detection: don't produce packages in unknown languages
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Fri Apr 24 12:10:09 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 c16105911edb419b6525e297ce0b6f78c955633e
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Fri Apr 24 13:50:57 2015 +0200
lang detection: don't produce packages in unknown languages
---
game_data_packager/__init__.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index 1c58104..1ee6848 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -2391,6 +2391,11 @@ class GameData(object):
virtual = package.debian.get('provides')
if virtual:
score = lang_score(package.lang)
+ if score == 0:
+ logger.info('will not produce "%s" '
+ 'because %s is not in LANGUAGE selection',
+ package.name, package.lang)
+ continue
for other_p in possible:
if other_p.name == package.name:
continue
--
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