diff options
author | ms <ms@taler.net> | 2022-04-30 08:17:27 +0200 |
---|---|---|
committer | ms <ms@taler.net> | 2022-04-30 08:17:27 +0200 |
commit | d9a71bbea41403c59fc2f07690aa5f0dc524a78d (patch) | |
tree | 595601cf911535c83330625fe5d6dd46307cde35 /bin | |
parent | d4b82ccab8a46dd3256b5caba82a6cb90e6b7934 (diff) | |
download | deployment-d9a71bbea41403c59fc2f07690aa5f0dc524a78d.tar.gz deployment-d9a71bbea41403c59fc2f07690aa5f0dc524a78d.tar.bz2 deployment-d9a71bbea41403c59fc2f07690aa5f0dc524a78d.zip |
option to exclude repositories
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/taler-local | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/taler-local b/bin/taler-local index 80bf4f9..33dca44 100755 --- 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: |