summaryrefslogtreecommitdiff
path: root/obnamlib/fmt_ga/client.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-03-17 19:37:28 +0200
committerLars Wirzenius <liw@liw.fi>2016-03-17 20:55:26 +0200
commitfea456ea4005bb740014fd2e2702ec43ebb8399c (patch)
tree79b1ab3547fe95c4320e69ec02e04d6bfde84b6b /obnamlib/fmt_ga/client.py
parente6ec2ffbad0164b04005e3ca1014c6752a088c27 (diff)
downloadobnam-fea456ea4005bb740014fd2e2702ec43ebb8399c.tar.gz
Add RepositoryInterface.get_client_checksum_key
Diffstat (limited to 'obnamlib/fmt_ga/client.py')
-rw-r--r--obnamlib/fmt_ga/client.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/obnamlib/fmt_ga/client.py b/obnamlib/fmt_ga/client.py
index b204c720..d29c85a6 100644
--- a/obnamlib/fmt_ga/client.py
+++ b/obnamlib/fmt_ga/client.py
@@ -53,6 +53,11 @@ class GAClient(object):
def set_default_checksum_algorithm(self, name):
self._default_checksum_algorithm = name
+ def get_client_checksum_key(self):
+ self._load_data()
+ assert self._checksum_algorithm is not None
+ return obnamlib.get_checksum_algorithm_key(self._checksum_algorithm)
+
def set_dir_bag_size(self, size):
self._dir_bag_size = size
if self._blob_store: