Clone recipe repositories into a separate subfolder.

This commit is contained in:
Patrick 2025-03-13 23:00:57 +01:00
parent 9e5fc05f4f
commit 1edf745b39

View File

@ -4,7 +4,7 @@ import os
Import('env')
def _recipe_repository(env, repo_name: str, remote_url: str, git_ref: str = 'master') -> None:
repo = env.GitBranch(repo_name = repo_name, remote_url = remote_url, git_ref = git_ref)
repo = env.GitBranch(repo_name = os.path.join('recipe_repos', repo_name), remote_url = remote_url, git_ref = git_ref)
env.Append(SPP_RECIPES_FOLDERS = [os.path.join(repo['checkout_root'], 'recipes')])
env.AddMethod(_recipe_repository, 'RecipeRepo')