diff options
author | Philip Kaludercic <philipk@posteo.net> | 2022-10-31 10:51:40 +0100 |
---|---|---|
committer | Philip Kaludercic <philipk@posteo.net> | 2022-10-31 10:51:40 +0100 |
commit | 17b017d55c49b7218a52bea3b6ddcd1705024bbe (patch) | |
tree | a25954b6120b938b0c911fb0072b6003289aa6ef /lisp | |
parent | 462a66e79edcc34ecbeef7cc1604765adfdc038e (diff) | |
download | emacs-17b017d55c49b7218a52bea3b6ddcd1705024bbe.tar.gz emacs-17b017d55c49b7218a52bea3b6ddcd1705024bbe.tar.bz2 emacs-17b017d55c49b7218a52bea3b6ddcd1705024bbe.zip |
; 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')
-rw-r--r-- | lisp/emacs-lisp/package.el | 4 |
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))))) |