gobject-introspection r979 - in trunk: . giscanner



Author: johan
Date: Sun Nov 30 13:05:52 2008
New Revision: 979
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=979&view=rev

Log:
2008-11-30  Johan Dahlin  <jdahlin async com br>

        Bug 562289 â Race when removing invalid cache

        * giscanner/cachestore.py:
        ENOENT is mapped to a OSError, not IOError.



Modified:
   trunk/ChangeLog
   trunk/giscanner/cachestore.py

Modified: trunk/giscanner/cachestore.py
==============================================================================
--- trunk/giscanner/cachestore.py	(original)
+++ trunk/giscanner/cachestore.py	Sun Nov 30 13:05:52 2008
@@ -68,8 +68,11 @@
             # Permission denied
             if e.errno == errno.EACCES:
                 return
+            else:
+                raise
+	except OSError, e:
             # File does not exist
-            elif e.errno == errno.ENOENT:
+            if e.errno == errno.ENOENT:
                 return
             else:
                 raise



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]