summaryrefslogtreecommitdiff
path: root/bin/just-mr.py
diff options
context:
space:
mode:
authorAlberto Sartori <alberto.sartori@huawei.com>2022-04-21 14:43:02 +0200
committerAlberto Sartori <alberto.sartori@huawei.com>2022-04-21 14:43:02 +0200
commit3ea705c630b438fd6513fd6190190a559060f341 (patch)
treeec0e3fb8c2a2ee157a3c6f480c7edacd8b9174c2 /bin/just-mr.py
parent9077143d0585ad55f336751a5a5b92d1082438e6 (diff)
downloadjustbuild-3ea705c630b438fd6513fd6190190a559060f341.tar.gz
add compatibility with original remote build protocol
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 2c2a08b3..7b68eb19 100755
--- a/bin/just-mr.py
+++ b/bin/just-mr.py
@@ -188,7 +188,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,"casf")
+ cas_root = os.path.join(ROOT,"protocol-dependent/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()))
@@ -205,7 +205,7 @@ def add_to_cas(data):
return target
def cas_path(h):
- return os.path.join(ROOT, "casf", h)
+ return os.path.join(ROOT, "protocol-dependent/git-sha1/casf", h)
def is_in_cas(h):
return os.path.exists(cas_path(h))