From 1b714c33b3efb7d1a75933f1d74d6091be5e7bba808db006b091c1082be48587 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Wed, 6 Feb 2013 19:02:27 +0000 Subject: [PATCH] - gettext: fix cases where no bundle is found (bnc#794139) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=131 --- python-base.changes | 5 +++++ python-bundle-lang.patch | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-base.changes b/python-base.changes index 86845a5..af473a8 100644 --- a/python-base.changes +++ b/python-base.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 6 19:01:46 UTC 2013 - jmatejek@suse.com + +- gettext: fix cases where no bundle is found (bnc#794139) + ------------------------------------------------------------------- Thu Oct 25 11:21:06 UTC 2012 - coolo@suse.com diff --git a/python-bundle-lang.patch b/python-bundle-lang.patch index f92f8fa..e31463a 100644 --- a/python-bundle-lang.patch +++ b/python-bundle-lang.patch @@ -16,7 +16,7 @@ Index: Python-2.7.3/Lib/gettext.py def find(domain, localedir=None, languages=None, all=0): + if localedir in [None, _default_localedir]: + bundle = find(domain, localedir=_default_bundlelocaledir, languages=languages, all=all) -+ if len(bundle): ++ if bundle: + return bundle # Get some reasonable defaults for arguments that were not supplied if localedir is None: