1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 01:06:50 +00:00

Fix archive listing

This commit is contained in:
Jonas Borgström 2010-10-25 19:17:48 +02:00
parent 4723bdd18e
commit 3fe1c1e854
2 changed files with 2 additions and 3 deletions

View file

@ -272,7 +272,7 @@ def process_chunk(self, data, cache):
@staticmethod
def list_archives(store, crypto):
for id in store.list(NS_ARCHIVES):
for id in list(store.list(NS_ARCHIVES)):
archive = Archive(store, crypto)
archive.load(id)
yield archive

View file

@ -1,5 +1,4 @@
import argparse
from getpass import getpass
import logging
import sys
@ -54,7 +53,7 @@ def do_list(self, args):
archive.list()
else:
for archive in Archive.list_archives(store, crypto):
print archive
print archive.name
return self.exit_code_from_logger()
def do_verify(self, args):