1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-24 08:45:13 +00:00

Fix info subcommand bug

This commit is contained in:
Jonas Borgström 2012-11-29 20:38:03 +01:00
parent 7245575fa2
commit 3fc4b69e97

View file

@ -203,6 +203,7 @@ def add(id):
stats = Statistics()
add(self.id)
for id, chunk in izip_longest(self.metadata['items'], self.store.get_many(self.metadata['items'])):
add(id)
unpacker.feed(self.key.decrypt(id, chunk))
for item in unpacker:
try:
@ -211,7 +212,6 @@ def add(id):
stats.nfiles += 1
except KeyError:
pass
add(id)
cache.rollback()
return stats