[entropy.client.cache] drop _selective_repositories_hash()

This commit is contained in:
Fabio Erculiani
2013-12-29 10:42:58 +01:00
parent f5eb6c1803
commit f6591e1ade

View File

@@ -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())