mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-04 19:29:37 +00:00
Protect against errors during package install
If the network is missing and there is a new use-package with :ensure, startup would fail part of the way through due package.el being unable to reach the package repo. This will catch that error and report it while allowing startup to continue. Copyright-paperwork-exempt: yes
This commit is contained in:
parent
c38c33e6fa
commit
ec088b747a
1 changed files with 1 additions and 1 deletions
|
@ -726,7 +726,7 @@ If the package is installed, its entry is removed from
|
|||
;; bypassed.
|
||||
(member context '(:byte-compile :ensure :config))
|
||||
(y-or-n-p (format "Install package %S?" package))))
|
||||
(progn
|
||||
(with-demoted-errors (format "Cannot load %s: %%S" name)
|
||||
(when (assoc package (bound-and-true-p package-pinned-packages))
|
||||
(package-read-all-archive-contents))
|
||||
(if (assoc package package-archive-contents)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue