taler-deployment

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

commit 43d8d3286aeac0f5894a7f0985e778670a8d038b
parent be32070f2161f7af18e6a3d9e099425a82b6be18
Author: MS <ms@taler.net>
Date:   Wed, 17 Feb 2021 08:13:56 +0100

Avoid cloning distro-installed components

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

diff --git a/bin/taler-deployment b/bin/taler-deployment @@ -506,11 +506,14 @@ def checkout_repos(cfg, repos): home = Path.home() sources = home / "sources" for r in repos: + tag = getattr(cfg, "tag_" + r.name.replace("-", "_")) + if not tag: + print(f"Not installing {r.name} from sources") + return r_dir = home / "sources" / r.name if not r_dir.exists(): r_dir.mkdir(parents=True, exist_ok=True) subprocess.run(["git", "-C", str(sources), "clone", r.url], check=True) - tag = getattr(cfg, "tag_" + r.name.replace("-", "_")) subprocess.run(["git", "-C", str(r_dir), "fetch"], check=True) subprocess.run( ["git", "-C", str(r_dir), "checkout", "-q", "-f", tag, "--"], check=True,