mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 06:20:43 -08:00
Merge pull request from thierryvolpiatto/fix_package_install
When :ensure is used install package as a selected package. GitHub-reference: https://github.com/jwiegley/use-package/issues/314
This commit is contained in:
commit
2b967a3c18
1 changed files with 4 additions and 2 deletions
|
|
@ -446,7 +446,7 @@ manually updated package."
|
|||
;;
|
||||
;; :ensure
|
||||
;;
|
||||
|
||||
(defvar package-archive-contents)
|
||||
(defun use-package-normalize/:ensure (name keyword args)
|
||||
(if (null args)
|
||||
t
|
||||
|
|
@ -462,7 +462,9 @@ manually updated package."
|
|||
(if (package-installed-p package)
|
||||
t
|
||||
(if (or (assoc package package-archive-contents) no-refresh)
|
||||
(package-install package)
|
||||
(if (boundp 'package-selected-packages)
|
||||
(package-install package t)
|
||||
(package-install package))
|
||||
(progn
|
||||
(package-refresh-contents)
|
||||
(use-package-ensure-elpa package t)))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue