From 8f45d18dcfb4bb4e4e867b279adf7d4c2746d2ea Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sat, 2 Jan 2010 16:25:38 +0100 Subject: [PATCH] [entropy.cache] do not use etpConst directly but rather use entropy.dump values --- libraries/entropy/cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/entropy/cache.py b/libraries/entropy/cache.py index 2c6ce005b..0ddde0e2c 100644 --- a/libraries/entropy/cache.py +++ b/libraries/entropy/cache.py @@ -258,12 +258,12 @@ class EntropyCacher(Singleton): @param cache_item: Entropy Cache item identifier @type cache_item: string """ - dump_path = os.path.join(etpConst['dumpstoragedir'], cache_item) + dump_path = os.path.join(entropy.dump.D_DIR, cache_item) dump_dir = os.path.dirname(dump_path) for currentdir, subdirs, files in os.walk(dump_dir): path = os.path.join(dump_dir, currentdir) for item in files: - if item.endswith(etpConst['cachedumpext']): + if item.endswith(entropy.dump.D_EXT): item = os.path.join(path, item) try: os.remove(item)