[entropy.client.cache] drop _selective_repositories_hash()
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user