gnunet-svn
[Top][All Lists]
Advanced

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

[taler-deployment] branch master updated: separate update from bootstrap


From: gnunet
Subject: [taler-deployment] branch master updated: separate update from bootstrap
Date: Sat, 02 Nov 2019 17:13:40 +0100

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

dold pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new 09bf18f  separate update from bootstrap
09bf18f is described below

commit 09bf18f46f8c685f7b05211803afeffbbea3eb5e
Author: Florian Dold <address@hidden>
AuthorDate: Sat Nov 2 17:13:37 2019 +0100

    separate update from bootstrap
---
 bin/taler-deployment | 42 ++++++++++++++++++++++++++++--------------
 1 file changed, 28 insertions(+), 14 deletions(-)

diff --git a/bin/taler-deployment b/bin/taler-deployment
index b9488b4..b8a3db4 100755
--- a/bin/taler-deployment
+++ b/bin/taler-deployment
@@ -400,20 +400,8 @@ def switch_demo(color) -> None:
     active_home.symlink_to(f"/home/demo-{color}")
 
 
-@cli.command()
-def bootstrap() -> None:
-    """Bootstrap a GNU Taler deployment."""
-
-    home = Path.home()
-
-    cfg = load_envcfg()
-    env_info = get_env_info(cfg)
-    repos = env_info.repos
-    envname = env_info.name
-
-    # read Python-style config
-
-    sources = home / "sources"
+def update_repos(repos):
+    sources = Path.home() / "sources"
 
     for r in repos:
         r_dir = home / "sources" / r.name
@@ -429,6 +417,30 @@ def bootstrap() -> None:
             check=True,
         )
 
+
+@cli.command()
+def update():
+    """Update sources repos"""
+    home = Path.home()
+    cfg = load_envcfg()
+    env_info = get_env_info(cfg)
+    repos = env_info.repos
+    update_repos(repos)
+
+
+@cli.command()
+def bootstrap() -> None:
+    """Bootstrap a GNU Taler deployment."""
+
+    home = Path.home()
+
+    cfg = load_envcfg()
+    env_info = get_env_info(cfg)
+    repos = env_info.repos
+    envname = env_info.name
+
+    # read Python-style config
+
     with (home / "activate").open("w") as f:
         f.write(
             activate_template.format(
@@ -439,6 +451,8 @@ def bootstrap() -> None:
             )
         )
 
+    update_repos()
+
     (home / "sockets").mkdir(parents=True, exist_ok=True)
 
     if envname in ("test", "int"):

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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