summaryrefslogtreecommitdiff
path: root/lisp/use-package/use-package.el
diff options
context:
space:
mode:
authorIvan Goncharov <kovrik0@gmail.com>2016-01-18 14:41:27 +1300
committerIvan Goncharov <kovrik0@gmail.com>2016-01-18 14:41:27 +1300
commit19474a17116737bc821041f2e1b339b32512c518 (patch)
tree326815c131f450b261e665726d521458aae6defd /lisp/use-package/use-package.el
parent38c170e17bf23fe0d5dc621c7a88c1093c2ee6ee (diff)
downloademacs-19474a17116737bc821041f2e1b339b32512c518.tar.gz
emacs-19474a17116737bc821041f2e1b339b32512c518.tar.bz2
emacs-19474a17116737bc821041f2e1b339b32512c518.zip
Do not package-initialize on each :pin
Diffstat (limited to 'lisp/use-package/use-package.el')
-rw-r--r--lisp/use-package/use-package.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el
index a359e946378..9eab03dedc3 100644
--- a/lisp/use-package/use-package.el
+++ b/lisp/use-package/use-package.el
@@ -422,7 +422,9 @@ manually updated package."
(add-to-list 'package-pinned-packages (cons package archive-name))
(error "Archive '%s' requested for package '%s' is not available."
archive-name package))
- (package-initialize t)))
+ (when (and (boundp 'package--initialized)
+ (not package--initialized))
+ (package-initialize t))))
(defun use-package-handler/:pin (name keyword archive-name rest state)
(let ((body (use-package-process-keywords name rest state))