upgrade seaf-cli to suport new clone and download rpc

This commit is contained in:
caixiangyue 2019-10-14 11:18:16 +08:00
parent 71168bcac0
commit ca0b056a03

View File

@ -462,9 +462,6 @@ def seaf_download(args):
random_key = tmp.get('random_key', None)
clone_token = tmp['token']
relay_id = tmp['relay_id']
relay_addr = tmp['relay_addr']
relay_port = str(tmp['relay_port'])
email = tmp['email']
repo_name = tmp['repo_name']
version = tmp.get('repo_version', 0)
@ -494,13 +491,10 @@ def seaf_download(args):
seafile_rpc.download(repo,
version,
relay_id,
repo_name,
download_dir,
clone_token,
repo_passwd, magic,
relay_addr,
relay_port,
email, random_key, enc_version, more_info)
@ -593,9 +587,6 @@ def seaf_sync(args):
random_key = tmp.get('random_key', None)
clone_token = tmp['token']
relay_id = tmp['relay_id']
relay_addr = tmp['relay_addr']
relay_port = str(tmp['relay_port'])
email = tmp['email']
repo_name = tmp['repo_name']
version = tmp.get('repo_version', 0)
@ -624,13 +615,10 @@ def seaf_sync(args):
seafile_rpc.clone(repo,
version,
relay_id,
repo_name,
folder,
clone_token,
repo_passwd, magic,
relay_addr,
relay_port,
email, random_key, enc_version, more_info)