summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-06-17 10:27:42 -0300
committerJohan Dahlin <johan@gnome.org>2010-06-17 10:28:37 -0300
commitb683ef027b2d96c7cd6c7f895a0437a03567dc05 (patch)
tree7a79b06e45bf475533598d704f988d2339dee519
parent0db67f199c1af9144049198f108c1902e007ab17 (diff)
downloadgobject-introspection-g-i-0.6.tar.gz
[cachestore] Properly clean the cacheg-i-0.6
Propertly clear the cache after a version invalidation. Send in the full filename to unlink, not just the basename.
-rw-r--r--giscanner/cachestore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/cachestore.py b/giscanner/cachestore.py
index 70ca00ad..d839ef58 100644
--- a/giscanner/cachestore.py
+++ b/giscanner/cachestore.py
@@ -135,7 +135,7 @@ class CacheStore(object):
for filename in os.listdir(self._directory):
if filename == _CACHE_VERSION_FILENAME:
continue
- self._remove_filename(filename)
+ self._remove_filename(os.path.join(self._directory, filename))
def store(self, filename, data):
store_filename = self._get_filename(filename)