Commit da827f1f authored by Yingjie Xu's avatar Yingjie Xu

Fix upload prototype.

parent e5fb7451
...@@ -107,8 +107,8 @@ def download_network_cached(dir_url, cache_url, path, url, logger, ...@@ -107,8 +107,8 @@ def download_network_cached(dir_url, cache_url, path, url, logger,
@fallback_call @fallback_call
def upload_network_cached(software_root, software_url, cached_key, cache_url, def upload_network_cached(software_root, software_url, cached_key,
path, logger, signature_private_key_file, cache_url, dir_url, path, logger, signature_private_key_file,
shacache_cert_file, shacache_key_file, shadir_cert_file, shadir_key_file): shacache_cert_file, shacache_key_file, shadir_cert_file, shadir_key_file):
"""Upload file to a network cache server""" """Upload file to a network cache server"""
if not LIBNETWORKCACHE_ENABLED: if not LIBNETWORKCACHE_ENABLED:
...@@ -143,7 +143,7 @@ def upload_network_cached(software_root, software_url, cached_key, cache_url, ...@@ -143,7 +143,7 @@ def upload_network_cached(software_root, software_url, cached_key, cache_url,
if not shadir_key_file: if not shadir_key_file:
shadir_key_file = None shadir_key_file = None
try: try:
nc = NetworkcacheClient(cache_url, software_url, nc = NetworkcacheClient(cache_url, dir_url,
signature_private_key_file=signature_private_key_file, signature_private_key_file=signature_private_key_file,
shacache_cert_file=shacache_cert_file, shacache_cert_file=shacache_cert_file,
shacache_key_file=shacache_key_file, shacache_key_file=shacache_key_file,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment