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.
;;
;; :ensure
;;
-
+(defvar package-archive-contents)
(defun use-package-normalize/:ensure (name keyword args)
(if (null args)
t
(if (package-installed-p package)
t
(if (or (assoc package package-archive-contents) no-refresh)
- (package-install package)
+ (package-install package t)
(progn
(package-refresh-contents)
(use-package-ensure-elpa package t)))))