commit d9a71bbea41403c59fc2f07690aa5f0dc524a78d
parent d4b82ccab8a46dd3256b5caba82a6cb90e6b7934
Author: ms <ms@taler.net>
Date: Sat, 30 Apr 2022 08:17:27 +0200
option to exclude repositories
Diffstat:
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/bin/taler-local b/bin/taler-local
@@ -450,6 +450,11 @@ def build(without_repos, only_repos, dry, with_envcfg, force) -> None:
show_default=True,
)
@click.option(
+ "--without-repos",
+ metavar="REPOS",
+ help="REPOS is a unspaced and comma-separated list of the repositories NOT to clone."
+)
+@click.option(
"--list-repos/--no-list-repos", default=False,
help="Lists the repositories that were bootstrapped.",
)
@@ -461,7 +466,7 @@ def build(without_repos, only_repos, dry, with_envcfg, force) -> None:
"--dry/--no-dry", default=False,
help="Print steps, without downloading any repository.",
)
-def bootstrap(list_repos, repos, with_envcfg, dry) -> None:
+def bootstrap(list_repos, repos, with_envcfg, dry, without_repos) -> None:
"""Clone all the specified repositories."""
# Only saying _which_ repo were installed. No further action
if list_repos:
@@ -504,6 +509,9 @@ def bootstrap(list_repos, repos, with_envcfg, dry) -> None:
reposList = split_repos_list(repos)
# 'reposList' is here ["repo1", "repo2", ...]
preparedRepos = load_repos(reposList)
+ if without_repos:
+ for exclude_repo in split_repos_list(without_repos):
+ preparedRepos = [el for el in preparedRepos if el.name != exclude_repo]
clone_repos(preparedRepos)
# Globals sharead accross multiple sub-commands: