diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2025-01-27 15:20:55 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2025-02-20 15:33:53 +0100 |
commit | d42e1f7f8b9c60a0d1fe3df98802060eb5b0ef64 (patch) | |
tree | 914039d632dec31d846747d4eb598e39af7f24b7 /bin | |
parent | 3ea3651deb8a1164347b548dc13fada3d729361d (diff) | |
download | justbuild-d42e1f7f8b9c60a0d1fe3df98802060eb5b0ef64.tar.gz |
just-lock: Add test for cloning archive-related repositories
...such as 'archive', 'zip', 'foreign file', and 'distdir'.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/just-lock.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/just-lock.py b/bin/just-lock.py index 56ebe385..30cfb978 100755 --- a/bin/just-lock.py +++ b/bin/just-lock.py @@ -1962,13 +1962,13 @@ def rewrite_cloned_repo(repos: Json, *, clone_to: str, target_repo: str, } } - # Keep any existing "special" or "to_git" pragmas from the workspace root - # repository + # Keep relevant pragmas from the workspace root repository pragma: Json = {} existing: Json = repos[ws_root_repo]["repository"].get("pragma", {}) - special = existing.get("special", None) - if special: - pragma["special"] = special + if ws_root_desc["repository"]["type"] not in ["archive", "zip"]: + special = existing.get("special", None) + if special: + pragma["special"] = special to_git = existing.get("to_git", False) if to_git: pragma["to_git"] = True |