Remove Repository.Test()

This commit is contained in:
Alexander Neumann
2015-05-17 20:51:32 +02:00
parent 6e38a8a033
commit eb6dfcf58c
4 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ func (c *Cache) Clear(repo *repository.Repository) error {
for _, entry := range list {
debug.Log("Cache.Clear", "found entry %v", entry)
if ok, err := repo.Test(backend.Snapshot, entry.ID.String()); !ok || err != nil {
if ok, err := repo.Backend().Test(backend.Snapshot, entry.ID.String()); !ok || err != nil {
debug.Log("Cache.Clear", "snapshot %v doesn't exist any more, removing %v", entry.ID, entry)
err = c.purge(backend.Snapshot, entry.Subtype, entry.ID)