diff --git a/lib/entropy/client/interfaces/cache.py b/lib/entropy/client/interfaces/cache.py index 220f485a2..41a8a74cc 100644 --- a/lib/entropy/client/interfaces/cache.py +++ b/lib/entropy/client/interfaces/cache.py @@ -39,10 +39,15 @@ class CacheMixin: sha.update(const_convert_to_rawstring(repr(c_hash))) return sha.hexdigest() - def _selective_repositories_hash(self, repositories): + def _repositories_hash(self): + """ + Return the checksum of all the available repositories, including + package repos. + """ sha = hashlib.sha1() sha.update(const_convert_to_rawstring("0")) - for repo in repositories: + + for repo in self.repositories(): try: dbconn = self.open_repository(repo) except (RepositoryError): @@ -59,10 +64,3 @@ class CacheMixin: level = "warning" ) return sha.hexdigest() - - def _repositories_hash(self): - """ - Return the checksum of all the available repositories, including - package repos. - """ - return self._selective_repositories_hash(self.repositories())