[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/19: database: 'register-path' creates the database directory if neede
From: |
Ludovic Courtès |
Subject: |
06/19: database: 'register-path' creates the database directory if needed. |
Date: |
Thu, 14 Jun 2018 05:17:08 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 866ee8c66aad84fe64a20a14ff19d20a4a408e5b
Author: Ludovic Courtès <address@hidden>
Date: Mon Jun 4 22:37:47 2018 +0200
database: 'register-path' creates the database directory if needed.
* guix/store/database.scm (register-path): Call 'mkdir-p'.
---
guix/store/database.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/guix/store/database.scm b/guix/store/database.scm
index 0f6d2e2..1400d0d 100644
--- a/guix/store/database.scm
+++ b/guix/store/database.scm
@@ -24,6 +24,7 @@
#:use-module (guix store deduplication)
#:use-module (guix base16)
#:use-module (guix build syscalls)
+ #:use-module ((guix build utils) #:select (mkdir-p))
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-11)
#:use-module (srfi srfi-19)
@@ -268,6 +269,7 @@ be used internally by the daemon's build hook."
(let-values (((hash nar-size)
(nar-sha256 real-path)))
(reset-timestamps real-path)
+ (mkdir-p db-dir)
(sqlite-register
#:db-file (string-append db-dir "/db.sqlite")
#:schema schema
- 05/19: database: Provide a way to specify the schema location., (continued)
- 05/19: database: Provide a way to specify the schema location., Ludovic Courtès, 2018/06/14
- 07/19: deduplicate: Fix a couple of thinkos., Ludovic Courtès, 2018/06/14
- 18/19: store: Remove 'register-path'., Ludovic Courtès, 2018/06/14
- 17/19: database: Allow for deterministic database construction., Ludovic Courtès, 2018/06/14
- 11/19: database: 'reset-timestamps' sets file permissions as well., Ludovic Courtès, 2018/06/14
- 03/19: store-copy: 'read-reference-graph' returns a list of records., Ludovic Courtès, 2018/06/14
- 14/19: database: 'sqlite-register' takes a database, not a file name., Ludovic Courtès, 2018/06/14
- 12/19: vm: 'expression->derivation-in-linux-vm' code can now use dlopen., Ludovic Courtès, 2018/06/14
- 10/19: database: Replace existing entries in Refs., Ludovic Courtès, 2018/06/14
- 15/19: database: Add 'register-items'., Ludovic Courtès, 2018/06/14
- 06/19: database: 'register-path' creates the database directory if needed.,
Ludovic Courtès <=
- 09/19: database: Add #:reset-timestamps? to 'register-path'., Ludovic Courtès, 2018/06/14
- 01/19: database: 'with-database' can now initialize new databases., Ludovic Courtès, 2018/06/14
- 13/19: install: Use (guix store database) instead of 'guix-register'., Ludovic Courtès, 2018/06/14
- 19/19: Remove 'guix-register' and its traces., Ludovic Courtès, 2018/06/14