| Index: client/cipd.py
|
| diff --git a/client/cipd.py b/client/cipd.py
|
| index 6065dbf81f13c2f3d8fb70ea4578bfea71c7c528..a550312b9b4a629dd9c902e534c30d2f6e47309f 100644
|
| --- a/client/cipd.py
|
| +++ b/client/cipd.py
|
| @@ -356,7 +356,7 @@ def get_client(
|
| # cache by hashing it.
|
| version_digest = hashlib.sha1(version).hexdigest()
|
| try:
|
| - instance_id = version_cache.read(version_digest)
|
| + instance_id = version_cache.getfileobj(version_digest).read()
|
| except isolateserver.CacheMiss:
|
| instance_id = resolve_version(
|
| service_url, package_name, version, timeout=timeoutfn())
|
| @@ -381,8 +381,10 @@ def get_client(
|
| binary_path = unicode(os.path.join(cache_dir, 'cipd' + EXECUTABLE_SUFFIX))
|
| if fs.isfile(binary_path):
|
| file_path.remove(binary_path)
|
| - instance_cache.hardlink(instance_id, binary_path, 0511) # -r-x--x--x
|
| -
|
| + isolateserver.putfile(
|
| + instance_cache.getfileobj(instance_id),
|
| + binary_path,
|
| + 0511) # -r-x--x--x
|
| yield CipdClient(binary_path)
|
|
|
|
|
|
|