summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/package.el
diff options
context:
space:
mode:
authorPhilip Kaludercic <philipk@posteo.net>2022-10-31 10:51:40 +0100
committerPhilip Kaludercic <philipk@posteo.net>2022-10-31 10:51:40 +0100
commit17b017d55c49b7218a52bea3b6ddcd1705024bbe (patch)
treea25954b6120b938b0c911fb0072b6003289aa6ef /lisp/emacs-lisp/package.el
parent462a66e79edcc34ecbeef7cc1604765adfdc038e (diff)
downloademacs-17b017d55c49b7218a52bea3b6ddcd1705024bbe.tar.gz
; 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.
Diffstat (limited to 'lisp/emacs-lisp/package.el')
-rw-r--r--lisp/emacs-lisp/package.el4
1 files changed, 0 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 977a16a7e19..ae3a1b7b830 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -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)))))