From 3bb2abc102cffdf35c8f3f3959f1c28ad3728f76 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Wed, 25 Dec 2013 14:10:37 +0100 Subject: [PATCH] [entropy.cache] drop EntropyCacher.CACHE_IDS['library_breakage'] --- lib/entropy/cache.py | 1 - lib/entropy/client/interfaces/dep.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/entropy/cache.py b/lib/entropy/cache.py index e59bf9ee9..3465f33dc 100644 --- a/lib/entropy/cache.py +++ b/lib/entropy/cache.py @@ -42,7 +42,6 @@ class EntropyCacher(Singleton): 'atom_search': 'atom_search/atom_search_', 'check_package_update': 'check_update/package_update_', 'depends_tree': 'depends/depends_tree_', - 'library_breakage': 'libs_break/library_breakage_', 'mask_filter': 'match/mask_filter', } diff --git a/lib/entropy/client/interfaces/dep.py b/lib/entropy/client/interfaces/dep.py index 6cbf34c05..0da1151ac 100644 --- a/lib/entropy/client/interfaces/dep.py +++ b/lib/entropy/client/interfaces/dep.py @@ -1888,8 +1888,7 @@ class CalculatorsMixin: sha = hashlib.sha1() sha.update(const_convert_to_rawstring(cache_s)) - cache_key = "%s%s" % ( - EntropyCacher.CACHE_IDS['library_breakage'], sha.hexdigest(),) + cache_key = "library_breakage/%s" % (sha.hexdigest(),) cached = self._cacher.pop(cache_key) if cached is not None: