borg/attic
Thomas Waldmann 212777d716 fix "attic info" all archives stats, fixes #183
the problem was that calc_stats() dirties cache.chunks by decrementing
the chunk reference counters (so it can compute the deduplicated size
of the archive correctly).

the fix is to create a local Cache instance inside calc_stats, so the dirty cache
instance can not be used elsewhere.

also:
fix internal consistency of calc_stats function: always use "cache" (not "self.cache").
minor cosmetic pep8 fixes
2015-04-19 18:50:10 +02:00
..
testsuite Fix incorrect behaviour with two character directory names. 2015-04-13 22:44:14 +02:00
__init__.py Start using versioneer for version numbers 2013-08-05 23:05:15 +02:00
_chunker.c Reuse chunker buffer between files. 2014-08-03 15:04:41 +02:00
_hashindex.c hashindex: Fix issue with file sizes larger than 2GB. 2015-01-06 22:28:04 +01:00
_version.py Start using versioneer for version numbers 2013-08-05 23:05:15 +02:00
archive.py fix "attic info" all archives stats, fixes #183 2015-04-19 18:50:10 +02:00
archiver.py fix "attic info" all archives stats, fixes #183 2015-04-19 18:50:10 +02:00
cache.py cache: Treat EOFError as a negative _confirm answer 2015-04-15 21:35:56 +02:00
chunker.pyx Reuse chunker buffer between files. 2014-08-03 15:04:41 +02:00
crypto.pyx crypto: store EVP_CIPHER_CTX on the stack 2014-05-13 23:18:32 +02:00
fuse.py fix typo in comment 2014-09-07 13:54:18 +01:00
hashindex.pyx HashIndex: Switch to a non-mmap based implementation 2014-07-10 15:32:29 +02:00
helpers.py Fix incorrect behaviour with two character directory names. 2015-04-13 22:44:14 +02:00
key.py Prepare for future payload format change 2014-12-17 21:55:33 +01:00
lrucache.py Remove unused imports 2013-10-18 21:00:20 +02:00
platform.py acl/xattr: Be less strict about unknown platforms 2015-04-15 21:49:03 +02:00
platform_darwin.pyx acl: Added workaround for old Linux systems 2014-08-01 15:50:18 +02:00
platform_freebsd.pyx acl: Added workaround for old Linux systems 2014-08-01 15:50:18 +02:00
platform_linux.pyx acl: Added workaround for old Linux systems 2014-08-01 15:50:18 +02:00
remote.py serve: use os.write(stdout_fd, ...), fixes #233 2015-03-14 19:45:01 +01:00
repository.py Speed up initial repository access 2014-10-10 21:01:55 +02:00
xattr.py acl/xattr: Be less strict about unknown platforms 2015-04-15 21:49:03 +02:00