diff --git a/childsplay-1.4-lang_switch.patch b/childsplay-1.4-lang_switch.patch new file mode 100644 index 0000000..6952417 --- /dev/null +++ b/childsplay-1.4-lang_switch.patch @@ -0,0 +1,12 @@ +diff -up childsplay-1.4/utils.py.patch childsplay-1.4/utils.py +--- childsplay-1.4/utils.py.patch 2009-10-23 19:55:08.000000000 +0200 ++++ childsplay-1.4/utils.py 2009-10-23 19:56:40.000000000 +0200 +@@ -114,7 +114,7 @@ def get_locale(): + if lang == '': + lang = locale.getdefaultlocale()[0].split('_')[0] + except Exception, info: +- module_logger.error("%s, %s" % info, "Switching to English") ++ module_logger.error("%s, %s" % (info, "Switching to English")) + lang = 'en' + if lang == 'C' or lang.lower() == 'posix': + # Default to English diff --git a/childsplay.spec b/childsplay.spec index f2373a2..fea1bdd 100644 --- a/childsplay.spec +++ b/childsplay.spec @@ -3,7 +3,7 @@ Name: childsplay Version: 1.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Suite of educational games for young children Group: Amusements/Games License: GPLv3 @@ -27,6 +27,7 @@ Source22: alphabet_sounds_ro-%{alphabet_ver}.tgz Source23: alphabet_sounds_ru-%{alphabet_ver}.tgz Source24: alphabet_sounds_sl-%{alphabet_ver}.tgz Source25: alphabet_sounds_sv-%{alphabet_ver}.tgz +Patch0: childsplay-1.4-lang_switch.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -200,6 +201,7 @@ pushd alphabet_sounds_lt-%{alphabet_ver}/AlphabetSounds mkdir lt mv *.* lt popd +%patch0 -p1 %build @@ -402,6 +404,9 @@ fi %changelog +* Fri Oct 23 2009 Johan Cwiklinski 1.4-2 +- fix get_locale issue (bug #530599) + * Sun Sep 13 2009 Johan Cwiklinski 1.4-1 - 1.4