Hello community,

here is the log from the commit of package python3-polib for openSUSE:Factory 
checked in at 2013-09-04 14:03:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-polib (Old)
 and      /work/SRC/openSUSE:Factory/.python3-polib.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-polib"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-polib/python3-polib.changes      
2013-06-21 19:01:50.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python3-polib.new/python3-polib.changes 
2013-09-04 14:03:25.000000000 +0200
@@ -1,0 +2,5 @@
+Tue Sep  3 14:31:29 UTC 2013 - [email protected]
+
+- fix endianess on mo file creation
+
+-------------------------------------------------------------------

New:
----
  endian.patch

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

Other differences:
------------------
++++++ python3-polib.spec ++++++
--- /var/tmp/diff_new_pack.Tq3j5e/_old  2013-09-04 14:03:26.000000000 +0200
+++ /var/tmp/diff_new_pack.Tq3j5e/_new  2013-09-04 14:03:26.000000000 +0200
@@ -24,6 +24,7 @@
 Group:          Development/Languages/Python
 Url:            http://bitbucket.org/izi/polib/
 Source0:        
http://bitbucket.org/izi/polib/downloads/polib-%{version}.tar.gz
+Patch0:         endian.patch
 BuildRequires:  python-Sphinx
 BuildRequires:  python3-devel
 BuildRequires:  python3-distribute
@@ -51,6 +52,7 @@
 
 %prep
 %setup -q -n polib-%{version}
+%patch0 -p1
 
 %build
 python3 setup.py build

++++++ endian.patch ++++++
Index: polib-1.0.3/polib.py
===================================================================
--- polib-1.0.3.orig/polib.py
+++ polib-1.0.3/polib.py
@@ -536,16 +536,12 @@ class _BaseFile(list):
             koffsets += [l1, o1 + keystart]
             voffsets += [l2, o2 + valuestart]
         offsets = koffsets + voffsets
-        # check endianness for magic number
-        if struct.pack('@h', 1) == struct.pack('<h', 1):
-            magic_number = MOFile.LITTLE_ENDIAN
-        else:
-            magic_number = MOFile.BIG_ENDIAN
+        magic = 0x950412de
 
         output = struct.pack(
             "Iiiiiii",
             # Magic number
-            magic_number,
+            magic,
             # Version
             0,
             # number of entries
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to