From b95ec5d4f14b85ca187f128859313396bf2c8fac Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 29 Jul 2010 19:07:14 +0200 Subject: [PATCH] [entropy.db] EntropyRepositoryBase: directly use checksum value returned by checksum() --- libraries/entropy/db/skel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/entropy/db/skel.py b/libraries/entropy/db/skel.py index 720efced2..4746fa265 100644 --- a/libraries/entropy/db/skel.py +++ b/libraries/entropy/db/skel.py @@ -4549,7 +4549,7 @@ class EntropyRepositoryBase(TextInterface, EntropyRepositoryPluginStore, object) def __atomMatchFetchCache(self, *args): if self.xcache: - ck_sum = hash(self.checksum(strict = False)) + ck_sum = self.checksum(strict = False) hash_str = self.__atomMatch_gen_hash_str(args) cached = entropy.dump.loadobj("%s/%s/%s_%s" % ( self.__db_match_cache_key, self.reponame, ck_sum, @@ -4565,7 +4565,7 @@ class EntropyRepositoryBase(TextInterface, EntropyRepositoryPluginStore, object) def __atomMatchStoreCache(self, *args, **kwargs): if self.xcache: - ck_sum = hash(self.checksum(strict = False)) + ck_sum = self.checksum(strict = False) hash_str = self.__atomMatch_gen_hash_str(args) self._cacher.push("%s/%s/%s_%s" % ( self.__db_match_cache_key, self.reponame, ck_sum, hash(hash_str),),