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.
This commit is contained in:
parent
1ca982808a
commit
ae9e328800
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue