summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-01-07 18:54:53 +0000
committerLars Wirzenius <liw@liw.fi>2014-01-07 18:54:53 +0000
commit6e43f7bcf427bc84bfb419220782657dc2209d46 (patch)
tree726d66bb940fffc9d6767ea249e27d43dbbd5317
parent626112ba50dae25e876f598bad2f89fb9512c9e3 (diff)
downloadobnam-6e43f7bcf427bc84bfb419220782657dc2209d46.tar.gz
Change generation removal to use API method
This makes the code a little bit more generic, which will be useful for enabling us to lift out generation removal from each repository format implementation to a higher level.
-rw-r--r--obnamlib/fmt_6/repo_fmt_6.py4
-rw-r--r--test-gpghome/random_seedbin600 -> 600 bytes
2 files changed, 2 insertions, 2 deletions
diff --git a/obnamlib/fmt_6/repo_fmt_6.py b/obnamlib/fmt_6/repo_fmt_6.py
index ad4cfe29..3a7b1caa 100644
--- a/obnamlib/fmt_6/repo_fmt_6.py
+++ b/obnamlib/fmt_6/repo_fmt_6.py
@@ -369,8 +369,8 @@ class RepositoryFormat6(obnamlib.RepositoryInterface):
def find_chunkids_in_gens(gen_nos):
chunkids = set()
for gen_number in gen_nos:
- # FIXME: This should call self.get_generation_chunk_ids
- x = client.list_chunks_in_generation(gen_number)
+ gen_id = (client_name, gen_number)
+ x = self.get_generation_chunk_ids(gen_id)
chunkids = chunkids.union(set(x))
return chunkids
diff --git a/test-gpghome/random_seed b/test-gpghome/random_seed
index ffa0e26a..6c772e3d 100644
--- a/test-gpghome/random_seed
+++ b/test-gpghome/random_seed
Binary files differ