commit e80ad7ab16b9d42d169bceb523d60510f9bf8fe9
parent 09bf18f46f8c685f7b05211803afeffbbea3eb5e
Author: Florian Dold <florian.dold@gmail.com>
Date: Sat, 2 Nov 2019 17:15:23 +0100
Revert "separate update from bootstrap"
This reverts commit 09bf18f46f8c685f7b05211803afeffbbea3eb5e.
Diffstat:
1 file changed, 14 insertions(+), 28 deletions(-)
diff --git a/bin/taler-deployment b/bin/taler-deployment
@@ -400,8 +400,20 @@ def switch_demo(color) -> None:
active_home.symlink_to(f"/home/demo-{color}")
-def update_repos(repos):
- sources = Path.home() / "sources"
+@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"
for r in repos:
r_dir = home / "sources" / r.name
@@ -417,30 +429,6 @@ def update_repos(repos):
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(
@@ -451,8 +439,6 @@ def bootstrap() -> None:
)
)
- update_repos()
-
(home / "sockets").mkdir(parents=True, exist_ok=True)
if envname in ("test", "int"):