diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el index bfb5002965d..dcc8842b6e9 100644 --- a/lisp/use-package/use-package.el +++ b/lisp/use-package/use-package.el @@ -427,7 +427,8 @@ 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))) + (unless (bound-and-true-p 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))