Hello community,

here is the log from the commit of package python-lockfile for openSUSE:Factory 
checked in at 2012-06-13 13:32:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-lockfile (Old)
 and      /work/SRC/openSUSE:Factory/.python-lockfile.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-lockfile", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-lockfile/python-lockfile.changes  
2011-09-23 12:42:56.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-lockfile.new/python-lockfile.changes     
2012-06-13 13:32:52.000000000 +0200
@@ -1,0 +2,6 @@
+Thu Feb  2 13:41:07 CET 2012 - [email protected]
+
+- added a patch to fix a TypeError in LockBase.__init__ when the current
+  thread has ident == None
+
+-------------------------------------------------------------------

New:
----
  python-lockfile-empty_ident.patch

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

Other differences:
------------------
++++++ python-lockfile.spec ++++++
--- /var/tmp/diff_new_pack.jC540W/_old  2012-06-13 13:32:53.000000000 +0200
+++ /var/tmp/diff_new_pack.jC540W/_new  2012-06-13 13:32:53.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-lockfile
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 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
@@ -23,12 +23,13 @@
 
 Name:           python-%{mod_name}
 Version:        0.9.1
-Release:        1
+Release:        0
 Url:            http://code.google.com/p/pylockfile/
 Summary:        Platform-independent file locking module
 License:        MIT
 Group:          Development/Languages/Python
 Source:         %{mod_name}-%{version}.tar.bz2
+Patch0:         %{name}-empty_ident.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  python-devel
 %if 0%{?suse_version}
@@ -51,6 +52,10 @@
 %prep
 %setup -q -n %{mod_name}-%{version}
 
+# current thread has ident = None, which causes a TypeError
+# http://code.google.com/p/pylockfile/issues/detail?id=8
+%patch0 -p1 -b .empty_ident
+
 %build
 export CFLAGS="%{optflags}"
 python setup.py build

++++++ python-lockfile-empty_ident.patch ++++++
--- lockfile-0.9.1/lockfile/__init__.py.orig    2012-02-02 13:32:51.133789612 
+0100
+++ lockfile-0.9.1/lockfile/__init__.py 2012-02-02 13:33:13.024241010 +0100
@@ -167,7 +167,7 @@
             t = threading.current_thread()
             # Thread objects in Python 2.4 and earlier do not have ident
             # attrs.  Worm around that.
-            ident = getattr(t, "ident", hash(t))
+            ident = getattr(t, "ident", hash(t)) or hash(t)
             self.tname = "-%x" % (ident & 0xffffffff)
         else:
             self.tname = ""
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to