Fix error in doom/help-packages for gnu packages

Due to validation checking for the wrong strings. Also extends support
for user-supplied archives (though the link may not be as helpful).
This commit is contained in:
Henrik Lissner 2019-07-09 23:30:59 +02:00
parent 468e630110
commit c99c184f85
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -523,11 +523,13 @@ If prefix arg is present, refresh the cache."
("org" "https://orgmode.org")
((or "melpa" "melpa-mirror")
(format "https://melpa.org/#/%s" package))
("elpa"
("gnu"
(format "https://elpa.gnu.org/packages/%s.html" package))
(archive
(if-let (src (cdr (assoc package package-archives)))
(format "%s" src)
(user-error "%S isn't installed through any known source (%s)"
package archive)))))
package archive))))))
((user-error "Cannot find the homepage for %S" package))))
;;;###autoload