summaryrefslogtreecommitdiff
path: root/bin/just-mr.py
diff options
context:
space:
mode:
authorSascha Roloff <sascha.roloff@huawei.com>2022-10-19 11:50:30 +0200
committerSascha Roloff <sascha.roloff@huawei.com>2022-10-19 15:57:14 +0200
commit2eea8a38c3461c54cf356e2f7310776f1152982b (patch)
treeb0ea57e9b5ec55274f75fd7b3abe586063e60c49 /bin/just-mr.py
parent2cfab6bdf859695b934187b6d847329895ecd324 (diff)
downloadjustbuild-2eea8a38c3461c54cf356e2f7310776f1152982b.tar.gz
Add generation directory as part of the just cache root.
This change is introduced to be prepared for future changes such as garbage collection. It is an incompatible change compared to earlier just versions since it modifies the local path to the just cache directory, where among others the CASes, action cache, target-level cache are located.
Diffstat (limited to 'bin/just-mr.py')
-rwxr-xr-xbin/just-mr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/just-mr.py b/bin/just-mr.py
index 119f0e7f..d48f18a0 100755
--- a/bin/just-mr.py
+++ b/bin/just-mr.py
@@ -268,7 +268,7 @@ def git_hash(content):
def add_to_cas(data):
if isinstance(data, str):
data = data.encode('utf-8')
- cas_root = os.path.join(ROOT, "protocol-dependent/git-sha1/casf")
+ cas_root = os.path.join(ROOT, "protocol-dependent/generation-0/git-sha1/casf")
basename = git_hash(data)
target = os.path.join(cas_root, basename)
tempname = os.path.join(cas_root, "%s.%d" % (basename, os.getpid()))
@@ -288,7 +288,7 @@ def add_to_cas(data):
def cas_path(h):
- return os.path.join(ROOT, "protocol-dependent/git-sha1/casf", h)
+ return os.path.join(ROOT, "protocol-dependent/generation-0/git-sha1/casf", h)
def is_in_cas(h):