summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-11-24 16:13:14 +0000
committerLars Wirzenius <liw@liw.fi>2012-11-24 16:13:14 +0000
commitb340e88a1317dfff27e07d1bd0d45a28cda08c9d (patch)
tree41f1ace31fa7e8b9e78dcc260181641dfafdaf05
parent64e0fc794894934b721c1c6e92438db395b878d9 (diff)
downloadobnam-b340e88a1317dfff27e07d1bd0d45a28cda08c9d.tar.gz
Check per-client B-tree only if client is not ignored
-rw-r--r--obnamlib/plugins/fsck_plugin.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/obnamlib/plugins/fsck_plugin.py b/obnamlib/plugins/fsck_plugin.py
index dd81e218..083b7190 100644
--- a/obnamlib/plugins/fsck_plugin.py
+++ b/obnamlib/plugins/fsck_plugin.py
@@ -218,9 +218,10 @@ class CheckClientlist(WorkItem):
self.settings['fsck-skip-per-client-b-trees'])
if not skip_client_trees:
for client_name in clients:
- client_id = self.repo.clientlist.get_client_id(client_name)
- client_dir = self.repo.client_dir(client_id)
- yield CheckBTree(str(client_dir))
+ if client_name not in self.settings['fsck-ignore-client']:
+ client_id = self.repo.clientlist.get_client_id(client_name)
+ client_dir = self.repo.client_dir(client_id)
+ yield CheckBTree(str(client_dir))
for client_name in clients:
if client_name not in self.settings['fsck-ignore-client']:
yield CheckClientExists(client_name)