From 3fe1c1e85460180de6a1c1c06df381bc3766d951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Borgstr=C3=B6m?= Date: Mon, 25 Oct 2010 19:17:48 +0200 Subject: [PATCH] Fix archive listing --- dedupestore/archive.py | 2 +- dedupestore/archiver.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dedupestore/archive.py b/dedupestore/archive.py index 52452a83b..80dc04bbf 100644 --- a/dedupestore/archive.py +++ b/dedupestore/archive.py @@ -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 diff --git a/dedupestore/archiver.py b/dedupestore/archiver.py index 961429779..6265f5ea8 100644 --- a/dedupestore/archiver.py +++ b/dedupestore/archiver.py @@ -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):