Clone recipe repositories into a separate subfolder.
This commit is contained in:
parent
9e5fc05f4f
commit
1edf745b39
@ -4,7 +4,7 @@ import os
|
|||||||
|
|
||||||
Import('env')
|
Import('env')
|
||||||
def _recipe_repository(env, repo_name: str, remote_url: str, git_ref: str = 'master') -> None:
|
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.Append(SPP_RECIPES_FOLDERS = [os.path.join(repo['checkout_root'], 'recipes')])
|
||||||
|
|
||||||
env.AddMethod(_recipe_repository, 'RecipeRepo')
|
env.AddMethod(_recipe_repository, 'RecipeRepo')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user