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 95dee8ca74
commit 1f32ba7e5e

View File

@ -455,9 +455,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)
@ -487,13 +484,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)
@ -586,9 +580,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)
@ -617,13 +608,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)