Fix ':built-in prefer' in package!
It was treating 'prefer as truthy, thus preventing packages with it from being installed (like so-long).
This commit is contained in:
parent
4ccb69dbd0
commit
641d4a1b71
1 changed files with 7 additions and 6 deletions
|
@ -232,12 +232,13 @@ elsewhere."
|
||||||
nil))))
|
nil))))
|
||||||
|
|
||||||
;; Handle :built-in
|
;; Handle :built-in
|
||||||
(unless ,ignore
|
(let ((built-in ,built-in))
|
||||||
(when-let (built-in ,built-in)
|
(unless ,ignore
|
||||||
(doom-log "Ignoring built-in package %S" name)
|
(when built-in
|
||||||
(when (eq built-in 'prefer)
|
(doom-log "Ignoring built-in package %S" name)
|
||||||
(setq built-in '(locate-library ,(symbol-name name) nil doom--initial-load-path))))
|
(when (eq built-in 'prefer)
|
||||||
(plist-put! plist :ignore ,built-in))
|
(setq built-in (locate-library (symbol-name name) nil doom--initial-load-path))))
|
||||||
|
(plist-put! plist :ignore built-in)))
|
||||||
|
|
||||||
;; DEPRECATED Translate :fetcher to :host
|
;; DEPRECATED Translate :fetcher to :host
|
||||||
(with-plist! plist (recipe)
|
(with-plist! plist (recipe)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue