mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
utils: 'cache-directory' always appends "/guix".
Fixes <http://bugs.gnu.org/23836>.
Fixes a regression introduced in f10dcbf1a9
.
Reported by myglc2 <myglc2@gmail.com>.
* guix/utils.scm (cache-directory): Always append "/guix".
This commit is contained in:
parent
25a3bfbe77
commit
934c5d5b28
1 changed files with 5 additions and 4 deletions
|
@ -637,10 +637,11 @@ (define (with-atomic-file-output file proc)
|
||||||
|
|
||||||
(define (cache-directory)
|
(define (cache-directory)
|
||||||
"Return the cache directory for Guix, by default ~/.cache/guix."
|
"Return the cache directory for Guix, by default ~/.cache/guix."
|
||||||
(or (getenv "XDG_CACHE_HOME")
|
(string-append (or (getenv "XDG_CACHE_HOME")
|
||||||
(and=> (or (getenv "HOME")
|
(and=> (or (getenv "HOME")
|
||||||
(passwd:dir (getpwuid (getuid))))
|
(passwd:dir (getpwuid (getuid))))
|
||||||
(cut string-append <> "/.cache/guix"))))
|
(cut string-append <> "/.cache")))
|
||||||
|
"/guix"))
|
||||||
|
|
||||||
(define (readlink* file)
|
(define (readlink* file)
|
||||||
"Call 'readlink' until the result is not a symlink."
|
"Call 'readlink' until the result is not a symlink."
|
||||||
|
|
Loading…
Reference in a new issue