Hello community, here is the log from the commit of package translate-toolkit for openSUSE:Factory checked in at 2019-04-08 10:30:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/translate-toolkit (Old) and /work/SRC/openSUSE:Factory/.translate-toolkit.new.3908 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "translate-toolkit" Mon Apr 8 10:30:34 2019 rev:33 rq:691600 version:2.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/translate-toolkit/translate-toolkit.changes 2019-03-08 11:01:36.596538810 +0100 +++ /work/SRC/openSUSE:Factory/.translate-toolkit.new.3908/translate-toolkit.changes 2019-04-08 10:30:38.603160697 +0200 @@ -1,0 +2,11 @@ +Thu Apr 4 13:58:00 UTC 2019 - Tomáš Chvátal <tchva...@suse.com> + +- Do not depend on strace, it is not really needed + +------------------------------------------------------------------- +Fri Mar 29 10:30:48 UTC 2019 - Tomáš Chvátal <tchva...@suse.com> + +- Add patch to build with current pycountry: + * pycountry.patch + +------------------------------------------------------------------- New: ---- pycountry.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ translate-toolkit.spec ++++++ --- /var/tmp/diff_new_pack.FKn6dP/_old 2019-04-08 10:30:40.379162854 +0200 +++ /var/tmp/diff_new_pack.FKn6dP/_new 2019-04-08 10:30:40.399162878 +0200 @@ -30,6 +30,7 @@ Patch0: sphinx-intersphinx.patch Patch1: test-pytest310.patch Patch2: xliff-xsd-no-network.patch +Patch3: pycountry.patch BuildRequires: fdupes BuildRequires: gettext-runtime BuildRequires: git-core @@ -49,7 +50,6 @@ BuildRequires: python3-six BuildRequires: python3-vobject BuildRequires: python3-xml -BuildRequires: strace BuildRequires: subversion Requires: gettext-runtime Requires: python3-lxml ++++++ pycountry.patch ++++++ >From 29170edbc67dfdf5819b689fc64fd498281f4bf0 Mon Sep 17 00:00:00 2001 From: Vinyl Darkscratch <vinyldarkscra...@gmail.com> Date: Mon, 17 Dec 2018 23:36:32 -0800 Subject: [PATCH] Update exceptions for newer PyCountry version --- translate/lang/data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translate/lang/data.py b/translate/lang/data.py index b89af385f..d2085bd45 100644 --- a/translate/lang/data.py +++ b/translate/lang/data.py @@ -595,7 +595,7 @@ def get_country_iso_name(country_code): if hasattr(country, 'common_name'): return country.common_name return country.name - except KeyError: + except (KeyError, AttributeError): return u"" @@ -609,7 +609,7 @@ def get_language_iso_name(language_code): if hasattr(language, 'common_name'): return language.common_name return language.name - except KeyError: + except (KeyError, AttributeError): return u""