1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 08:43:40 -07:00

Cosmetic changes to use-package-ensure-elpa

This commit is contained in:
Jonas Bernoulli 2017-10-13 14:09:13 +02:00
parent 68c9ee4bff
commit 85643eaf18

View file

@ -741,14 +741,15 @@ If the package is installed, its entry is removed from
(progn (progn
(when (assoc package (bound-and-true-p package-pinned-packages)) (when (assoc package (bound-and-true-p package-pinned-packages))
(package-read-all-archive-contents)) (package-read-all-archive-contents))
(if (assoc package package-archive-contents) (cond ((assoc package package-archive-contents)
(progn (package-install package) t) (package-install package)
(progn t)
(package-refresh-contents) (t
(when (assoc package (bound-and-true-p (package-refresh-contents)
package-pinned-packages)) (when (assoc package
(package-read-all-archive-contents)) (bound-and-true-p package-pinned-packages))
(package-install package)))) (package-read-all-archive-contents))
(package-install package))))
(error (message "Error: Cannot load %s: %S" name err) (error (message "Error: Cannot load %s: %S" name err)
nil)))))) nil))))))