gnunet-svn
[Top][All Lists]
Advanced

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

[taler-deployment] branch master updated: Avoid cloning distro-installed


From: gnunet
Subject: [taler-deployment] branch master updated: Avoid cloning distro-installed components
Date: Wed, 17 Feb 2021 08:14:00 +0100

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

ms pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new 43d8d32  Avoid cloning distro-installed components
43d8d32 is described below

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

    Avoid cloning distro-installed components
---
 bin/taler-deployment | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bin/taler-deployment b/bin/taler-deployment
index e68fd1b..3e68dd9 100755
--- 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,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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