Hello community,

here is the log from the commit of package python3-Babel for openSUSE:Factory 
checked in at 2015-02-05 11:00:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-Babel (Old)
 and      /work/SRC/openSUSE:Factory/.python3-Babel.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-Babel"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-Babel/python3-Babel.changes      
2014-11-18 22:45:25.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python3-Babel.new/python3-Babel.changes 
2015-02-05 11:00:52.000000000 +0100
@@ -1,0 +2,9 @@
+Thu Jan 29 00:43:53 UTC 2015 - [email protected]
+
+- Add fix-timezone-test.patch: already included upstream
+
+- specfile:
+  * updated copyright year
+  * added patch
+  
+-------------------------------------------------------------------

New:
----
  fix-timezone-test.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python3-Babel.spec ++++++
--- /var/tmp/diff_new_pack.yVB7NU/_old  2015-02-05 11:00:53.000000000 +0100
+++ /var/tmp/diff_new_pack.yVB7NU/_new  2015-02-05 11:00:53.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python3-Babel
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,8 @@
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 Source:         
http://pypi.python.org/packages/source/B/Babel/Babel-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE fix-timezone-test.patch (taken from upstream)
+Patch0:         fix-timezone-test.patch
 BuildRequires:  fdupes
 BuildRequires:  python3-devel >= 3.3
 BuildRequires:  python3-setuptools
@@ -43,6 +45,7 @@
 
 %prep
 %setup -q -n Babel-%{version}
+%patch0 -p0
 sed -i "s/pybabel =/pybabel-%{py3_ver} =/" setup.py
 
 %build

++++++ fix-timezone-test.patch ++++++
--- babel/dates.py.old  2015-01-28 16:54:06.306129842 -0800
+++ babel/dates.py      2015-01-28 16:54:44.574118917 -0800
@@ -308,7 +308,9 @@
         datetime = datetime.replace(tzinfo=UTC)
     locale = Locale.parse(locale)
 
-    offset = datetime.tzinfo.utcoffset(datetime)
+    # fix for mitsuhiko/babel#133 : Any time will do since we just want the
+    # offset
+    offset = datetime.tzinfo.utcoffset(datetime_.utcnow())
     seconds = offset.days * 24 * 60 * 60 + offset.seconds
     hours, seconds = divmod(seconds, 3600)
     if width == 'short':
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to