fix: doom-local-dir for profiles

- Ensure it ends in slash,
- Ensure it includes the @-tag (e.g. default@latest),
- Remove vestigial code path that is unreachable.
This commit is contained in:
Henrik Lissner 2022-07-28 12:39:09 +02:00
parent 44f169740e
commit 22eace62d0
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -207,10 +207,8 @@ downloaded/installed by packages. Must end in a slash.")
(if-let (localdir (getenv-internal "DOOMLOCALDIR"))
(expand-file-name (file-name-as-directory localdir))
(if doom-profile
(expand-file-name doom-profile doom-profiles-dir)
(format "%s.local%s/"
doom-emacs-dir
(if doom-profile (concat "." doom-profile) ""))))
doom-profile-dir
(expand-file-name ".local/" doom-emacs-dir)))
"Root directory for local storage.
Use this as a storage location for this system's installation of Doom Emacs.