From ae9e328800210bee6b5c04e5d80007d70bfadd75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 13 Jan 2013 23:47:37 +0100 Subject: [PATCH] guix-package: Fix check for ~/.guix-profile existence. * guix-package.in (guix-package): When testing whether %USER-ENVIRONMENT-DIRECTORY exists, use `lstat' instead of `file-exists?'. Reported by Andreas Enge. --- guix-package.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guix-package.in b/guix-package.in index 450d09e081..3b8615cb72 100644 --- a/guix-package.in +++ b/guix-package.in @@ -462,7 +462,8 @@ Install, remove, or upgrade PACKAGES in a single transaction.\n")) ;; Create ~/.guix-profile if it doesn't exist yet. (when (and %user-environment-directory %current-profile - (not (file-exists? %user-environment-directory))) + (not (false-if-exception + (lstat %user-environment-directory)))) (symlink %current-profile %user-environment-directory)) (with-error-handling