mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-06 12:19:37 +00:00
When :ensure is used install package as a selected package
Also shutup bytecompiler about package-archive-contents. * use-package.el (use-package-ensure-elpa): Add package to selected package by using second arg of package install.
This commit is contained in:
parent
9e2dcf8655
commit
5cbfd926c5
1 changed files with 2 additions and 2 deletions
|
@ -446,7 +446,7 @@ manually updated package."
|
||||||
;;
|
;;
|
||||||
;; :ensure
|
;; :ensure
|
||||||
;;
|
;;
|
||||||
|
(defvar package-archive-contents)
|
||||||
(defun use-package-normalize/:ensure (name keyword args)
|
(defun use-package-normalize/:ensure (name keyword args)
|
||||||
(if (null args)
|
(if (null args)
|
||||||
t
|
t
|
||||||
|
@ -462,7 +462,7 @@ manually updated package."
|
||||||
(if (package-installed-p package)
|
(if (package-installed-p package)
|
||||||
t
|
t
|
||||||
(if (or (assoc package package-archive-contents) no-refresh)
|
(if (or (assoc package package-archive-contents) no-refresh)
|
||||||
(package-install package)
|
(package-install package t)
|
||||||
(progn
|
(progn
|
||||||
(package-refresh-contents)
|
(package-refresh-contents)
|
||||||
(use-package-ensure-elpa package t)))))
|
(use-package-ensure-elpa package t)))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue