diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-07-28 14:51:44 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-07-28 18:09:43 +0200 |
commit | f0e492f0a54f184e47c0bd639ad338b1b783d258 (patch) | |
tree | 65725a2b73771c6ba90e96bd2dccb8dbc673160c /guix/scripts | |
parent | 6f0f55148d8f70ff5bb7455689a4e78b1807d555 (diff) |
utils: Factorize XDG directory handling.
* guix/ui.scm (config-directory): Remove.
* guix/utils.scm (xdg-directory, config-directory): New procedures.
(cache-directory): Rewrite in terms of 'xdg-directory'.
* guix/scripts/substitute.scm (%narinfo-cache-directory): Pass #:ensure?
#f to 'cache-directory'.
Diffstat (limited to 'guix/scripts')
-rwxr-xr-x | guix/scripts/substitute.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/scripts/substitute.scm b/guix/scripts/substitute.scm index 35282f9027..0d36997bc4 100755 --- a/guix/scripts/substitute.scm +++ b/guix/scripts/substitute.scm @@ -113,7 +113,7 @@ (or (and=> (getenv "XDG_CACHE_HOME") (cut string-append <> "/guix/substitute")) (string-append %state-directory "/substitute/cache")) - (string-append (cache-directory) "/substitute"))) + (string-append (cache-directory #:ensure? #f) "/substitute"))) (define %allow-unauthenticated-substitutes? ;; Whether to allow unchecked substitutes. This is useful for testing |