[gobject-introspection] [cachestore] Properly clean the cache



commit b683ef027b2d96c7cd6c7f895a0437a03567dc05
Author: Johan Dahlin <johan gnome org>
Date:   Thu Jun 17 10:27:42 2010 -0300

    [cachestore] Properly clean the cache
    
    Propertly clear the cache after a version invalidation.
    Send in the full filename to unlink, not just the basename.

 giscanner/cachestore.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/cachestore.py b/giscanner/cachestore.py
index 70ca00a..d839ef5 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)



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