diff options
author | MS <ms@taler.net> | 2021-02-17 09:09:23 +0100 |
---|---|---|
committer | MS <ms@taler.net> | 2021-02-17 09:09:23 +0100 |
commit | b831f738a2849c54c1ba99789222e125477fb1e5 (patch) | |
tree | 9268bb6431adfabcdd1ceec46de1437f06b910a6 /bin/taler-deployment | |
parent | fb6ef49c75415bb00f9e9d65d0fed97e9a20be21 (diff) | |
download | deployment-b831f738a2849c54c1ba99789222e125477fb1e5.tar.gz deployment-b831f738a2849c54c1ba99789222e125477fb1e5.tar.bz2 deployment-b831f738a2849c54c1ba99789222e125477fb1e5.zip |
checkout operation needs tag
Diffstat (limited to 'bin/taler-deployment')
-rwxr-xr-x | bin/taler-deployment | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/taler-deployment b/bin/taler-deployment index 6e8a88f..c4448db 100755 --- 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, ) |