taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit b831f738a2849c54c1ba99789222e125477fb1e5
parent fb6ef49c75415bb00f9e9d65d0fed97e9a20be21
Author: MS <ms@taler.net>
Date:   Wed, 17 Feb 2021 09:09:23 +0100

checkout operation needs tag

Diffstat:
Mbin/taler-deployment | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/taler-deployment b/bin/taler-deployment @@ -484,7 +484,6 @@ def build() -> None: for r in stale: p = Path.home() / "sources" / r.name os.chdir(str(p)) - tag = getattr(cfg, "tag_" + r.name.replace("-", "_")) r.builder(r, p) @@ -503,6 +502,7 @@ def switch_demo(color) -> None: active_home.symlink_to(f"/home/demo-{color}") +# repos does not contain distro-installed components def checkout_repos(cfg, repos): """Check out repos to the version specified in envcfg.py""" home = Path.home() @@ -513,6 +513,7 @@ def checkout_repos(cfg, repos): r_dir.mkdir(parents=True, exist_ok=True) subprocess.run(["git", "-C", str(sources), "clone", r.url], check=True) subprocess.run(["git", "-C", str(r_dir), "fetch"], check=True) + tag = getattr(cfg, "tag_" + r.name.replace("-", "_")) subprocess.run( ["git", "-C", str(r_dir), "checkout", "-q", "-f", tag, "--"], check=True, )