summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@async.com.br>2008-11-30 13:05:52 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-11-30 13:05:52 +0000
commit381c42be6df69deca5ef51a8e3de63d3aad940d2 (patch)
tree4252031cdbd586053ef087518f8b4c57a5e3b74a
parentc081aa011c6ced9e1a9f9aa66cc208ab15484468 (diff)
downloadgobject-introspection-381c42be6df69deca5ef51a8e3de63d3aad940d2.tar.gz
Bug 562289 – Race when removing invalid cache
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. svn path=/trunk/; revision=979
-rw-r--r--ChangeLog7
-rw-r--r--giscanner/cachestore.py5
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ca82d603..d44a0fb2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2008-11-27 Johan Dahlin <jdahlin@async.com.br>
* gir/glib-2.0.c: Add return value transfer annotation
diff --git a/giscanner/cachestore.py b/giscanner/cachestore.py
index bd3d8641..d7d7b4f2 100644
--- a/giscanner/cachestore.py
+++ b/giscanner/cachestore.py
@@ -68,8 +68,11 @@ class CacheStore(object):
# 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