mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 06:20:43 -08:00
Cosmetic changes to use-package-ensure-elpa
This commit is contained in:
parent
68c9ee4bff
commit
85643eaf18
1 changed files with 9 additions and 8 deletions
|
|
@ -741,14 +741,15 @@ If the package is installed, its entry is removed from
|
|||
(progn
|
||||
(when (assoc package (bound-and-true-p package-pinned-packages))
|
||||
(package-read-all-archive-contents))
|
||||
(if (assoc package package-archive-contents)
|
||||
(progn (package-install package) t)
|
||||
(progn
|
||||
(package-refresh-contents)
|
||||
(when (assoc package (bound-and-true-p
|
||||
package-pinned-packages))
|
||||
(package-read-all-archive-contents))
|
||||
(package-install package))))
|
||||
(cond ((assoc package package-archive-contents)
|
||||
(package-install package)
|
||||
t)
|
||||
(t
|
||||
(package-refresh-contents)
|
||||
(when (assoc package
|
||||
(bound-and-true-p package-pinned-packages))
|
||||
(package-read-all-archive-contents))
|
||||
(package-install package))))
|
||||
(error (message "Error: Cannot load %s: %S" name err)
|
||||
nil))))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue