guix-commits
[Top][All Lists]
Advanced

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

01/03: utils: 'cache-directory' honors 'XDG_CACHE_HOME'.


From: Ludovic Courtès
Subject: 01/03: utils: 'cache-directory' honors 'XDG_CACHE_HOME'.
Date: Wed, 22 Jun 2016 22:13:05 +0000 (UTC)

civodul pushed a commit to branch master
in repository guix.

commit 3583b27b2cb42ac8c88e7f53df2e3101d5a82ede
Author: Ludovic Courtès <address@hidden>
Date:   Wed Jun 22 23:39:57 2016 +0200

    utils: 'cache-directory' honors 'XDG_CACHE_HOME'.
    
    * guix/utils.scm (cache-directory): Honor 'XDG_CACHE_HOME', not
    'XDG_CONFIG_HOME'.
---
 guix/utils.scm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/utils.scm b/guix/utils.scm
index 69f4e78..6bcee17 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -637,7 +637,7 @@ output port, and PROC's result is returned."
 
 (define (cache-directory)
   "Return the cache directory for Guix, by default ~/.cache/guix."
-  (or (getenv "XDG_CONFIG_HOME")
+  (or (getenv "XDG_CACHE_HOME")
       (and=> (or (getenv "HOME")
                  (passwd:dir (getpwuid (getuid))))
              (cut string-append <> "/.cache/guix"))))



reply via email to

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