From ed9475d7cd1b3c516d6fe4e699b80160d33f4927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Borgstr=C3=B6m?= Date: Mon, 20 Apr 2015 00:07:26 +0200 Subject: [PATCH] Fix cache object reference --- attic/archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attic/archive.py b/attic/archive.py index dd734b256..1b3818bc8 100644 --- a/attic/archive.py +++ b/attic/archive.py @@ -209,7 +209,7 @@ class Archive: def add(id): count, size, csize = cache.chunks[id] stats.update(size, csize, count == 1) - self.cache.chunks[id] = count - 1, size, csize + cache.chunks[id] = count - 1, size, csize def add_file_chunks(chunks): for id, _, _ in chunks: add(id)