mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 09:19:31 +00:00
Fix archive listing
This commit is contained in:
parent
4723bdd18e
commit
3fe1c1e854
2 changed files with 2 additions and 3 deletions
|
@ -272,7 +272,7 @@ def process_chunk(self, data, cache):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def list_archives(store, crypto):
|
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 = Archive(store, crypto)
|
||||||
archive.load(id)
|
archive.load(id)
|
||||||
yield archive
|
yield archive
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import argparse
|
import argparse
|
||||||
from getpass import getpass
|
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -54,7 +53,7 @@ def do_list(self, args):
|
||||||
archive.list()
|
archive.list()
|
||||||
else:
|
else:
|
||||||
for archive in Archive.list_archives(store, crypto):
|
for archive in Archive.list_archives(store, crypto):
|
||||||
print archive
|
print archive.name
|
||||||
return self.exit_code_from_logger()
|
return self.exit_code_from_logger()
|
||||||
|
|
||||||
def do_verify(self, args):
|
def do_verify(self, args):
|
||||||
|
|
Loading…
Reference in a new issue