Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: client/isolateserver.py

Issue 2037253002: run_isolated.py: install CIPD packages (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/isolateserver.py
diff --git a/client/isolateserver.py b/client/isolateserver.py
index 1a679fcfcf1d58f95d3bf03be2e38857be83534c..f96cf9bd2003c372fca40112b5486898c840ae57 100755
--- a/client/isolateserver.py
+++ b/client/isolateserver.py
@@ -1523,6 +1523,17 @@ class DiskCache(LocalCache):
with self._lock:
self._linked.append(self._lru[digest])
+ def item_path(self, digest):
+ """Returns a path on disk of the cached item.
+
+ Raises:
+ CacheMiss if the item is not present in cache.
+ """
M-A Ruel 2016/06/06 23:34:51 if digest not in self._lru: raise CacheMiss(dige
nodir 2016/06/07 18:46:35 Done
+ path = self._path(digest)
+ if not fs.isfile(path):
+ raise CacheMiss(digest)
+ return path
+
def _load(self):
"""Loads state of the cache from json file."""
self._lock.assert_locked()

Powered by Google App Engine
This is Rietveld 408576698