From 6a6e0bea83bacee9f04d045b173ff94f9ec8017a Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Tue, 6 Dec 2022 11:06:27 +0100 Subject: just-import-git.py: Support distdir repositories --- bin/just-import-git.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/just-import-git.py b/bin/just-import-git.py index 000d2f33..9b9f1023 100755 --- a/bin/just-import-git.py +++ b/bin/just-import-git.py @@ -204,6 +204,9 @@ def rewrite_repo(repo_spec, *, remote, assign): if subdir not in ["", "."]: changes["subdir"] = subdir repo = dict(remote, **changes) + elif repo.get("type") == "distdir": + new_repos = [assign[k] for k in repo.get("repositories", [])] + repo = dict(repo, **{"repositories": new_repos}) new_spec["repository"] = repo for key in ["target_root", "rule_root", "expression_root"]: if key in repo_spec: -- cgit v1.2.3