1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

Change condition that checks if package has been initialized

This commit is contained in:
Ivan Goncharov 2016-01-20 10:49:27 +13:00
parent 19474a1711
commit c42e3f5669

View File

@ -422,8 +422,7 @@ 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))
(when (and (boundp 'package--initialized)
(not package--initialized))
(unless (bound-and-true-p package--initialized)
(package-initialize t))))
(defun use-package-handler/:pin (name keyword archive-name rest state)