summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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