[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/07: inferior: Fix concurrent cached-profile calls.
From: |
guix-commits |
Subject: |
05/07: inferior: Fix concurrent cached-profile calls. |
Date: |
Wed, 10 Mar 2021 02:50:20 -0500 (EST) |
mothacehe pushed a commit to branch master
in repository guix.
commit 6ee7e3d26b8f5d2a234518cc2ab1bfeba7cd7c18
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Fri Mar 5 12:49:06 2021 +0100
inferior: Fix concurrent cached-profile calls.
* guix/inferior.scm (cached-profile): Do not create the profile symlink if
it
already exists.
---
guix/inferior.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/guix/inferior.scm b/guix/inferior.scm
index 714e1e1..d0cd1cc 100644
--- a/guix/inferior.scm
+++ b/guix/inferior.scm
@@ -755,8 +755,9 @@ seconds. This procedure opens a new connection to the
build daemon."
(built-derivations (list profile))
;; Note: Caching is fine even when AUTHENTICATE? is false because
;; we always call 'latest-channel-instances?'.
- (symlink* (derivation->output-path profile) cached)
- (add-indirect-root* cached)
+ (unless (file-exists? cached)
+ (symlink* (derivation->output-path profile) cached)
+ (add-indirect-root* cached))
(return cached))))))
(define* (channels->cached-profile store channels
- branch master updated (80739ea -> 76bea3f), guix-commits, 2021/03/10
- 01/07: gnu: guile-simple-zmq: Update to 0.0.0-9.b2ea97e., guix-commits, 2021/03/10
- 03/07: services: cuirass: Do not create the database directory., guix-commits, 2021/03/10
- 02/07: gnu: cuirass: Update to 0.0.1-73.14e1335., guix-commits, 2021/03/10
- 05/07: inferior: Fix concurrent cached-profile calls.,
guix-commits <=
- 04/07: inferior: Break cached-channel-instance into two procedures., guix-commits, 2021/03/10
- 06/07: channels: Export channel-instance->sexp., guix-commits, 2021/03/10
- 07/07: ci: Remove hydra support., guix-commits, 2021/03/10