diff options
Diffstat (limited to 'obnamlib/fmt_ga/format.py')
-rw-r--r-- | obnamlib/fmt_ga/format.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/obnamlib/fmt_ga/format.py b/obnamlib/fmt_ga/format.py index f05a31f2..dfda1cc0 100644 --- a/obnamlib/fmt_ga/format.py +++ b/obnamlib/fmt_ga/format.py @@ -1,4 +1,4 @@ -# Copyright 2015 Lars Wirzenius +# Copyright 2015-2016 Lars Wirzenius # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -27,9 +27,13 @@ class RepositoryFormatGA(obnamlib.RepositoryDelegator): obnamlib.RepositoryDelegator.__init__(self, **kwargs) self.set_client_list_object(obnamlib.GAClientList()) - self.set_chunk_indexes_object(obnamlib.GAChunkIndexes()) self.set_client_factory(obnamlib.GAClient) + self.set_chunk_indexes_object(obnamlib.GAChunkIndexes()) + assert 'checksum_algorithm' in kwargs + self._chunk_indexes.set_default_checksum_algorithm( + kwargs['checksum_algorithm']) + chunk_store = obnamlib.GAChunkStore() if 'chunk_size' in kwargs: # pragma: no cover chunk_store.set_max_chunk_size(kwargs['chunk_size']) |