; Avoid loading package-vc in 'package-load-descriptor'

* lisp/emacs-lisp/package.el (package-load-descriptor): Remove the
:commit check.

The property is mostly unused anyway, and this unnecessarily slows
down initialisation if a package is installed from source.
This commit is contained in:
Philip Kaludercic 2022-10-31 10:51:40 +01:00
parent 462a66e79e
commit 17b017d55c

View file

@ -726,10 +726,6 @@ return it."
(read (current-buffer)))
(error "Can't find define-package in %s" pkg-file))))
(setf (package-desc-dir pkg-desc) pkg-dir)
(when (package-vc-p pkg-desc)
(require 'package-vc)
(push (cons :commit (package-vc-commit pkg-desc))
(package-desc-extras pkg-desc)))
(if (file-exists-p signed-file)
(setf (package-desc-signed pkg-desc) t))
pkg-desc)))))