gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-deployment] branch master updated: option to exclude repositories


From: gnunet
Subject: [taler-deployment] branch master updated: option to exclude repositories
Date: Sat, 30 Apr 2022 08:17:38 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new d9a71bb  option to exclude repositories
d9a71bb is described below

commit d9a71bbea41403c59fc2f07690aa5f0dc524a78d
Author: ms <ms@taler.net>
AuthorDate: Sat Apr 30 08:17:27 2022 +0200

    option to exclude repositories
---
 bin/taler-local | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/bin/taler-local b/bin/taler-local
index 80bf4f9..33dca44 100755
--- a/bin/taler-local
+++ b/bin/taler-local
@@ -449,6 +449,11 @@ def build(without_repos, only_repos, dry, with_envcfg, 
force) -> None:
     
default="libmicrohttpd,gnunet,exchange,merchant,wallet-core,taler-merchant-demos,sync,libeufin",
     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:

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]