Upgrade out-of-date VC package dependencies

* lisp/emacs-lisp/package-vc.el (package-vc-install-dependencies): Pass
the specified package version when checking if a package is installed.

(Bug#73781)

(cherry picked from commit 71a4670a9f)
This commit is contained in:
Joseph Turner 2024-10-13 01:10:02 +02:00 committed by Stefan Kangas
parent 563b6f9451
commit d63b27a416

View file

@ -465,7 +465,7 @@ this function successfully installs all given dependencies)."
"Attempt to find all dependencies for PKG."
(cond
((assq (car pkg) to-install)) ;inhibit cycles
((package-installed-p (car pkg)))
((package-installed-p (car pkg) (cadr pkg)))
((let* ((pac package-archive-contents)
(desc (cadr (assoc (car pkg) pac))))
(if desc