]> git.eshelyaron.com Git - emacs.git/commitdiff
; Avoid installing VC package dependencies multiple times
authorPhilip Kaludercic <philipk@posteo.net>
Thu, 16 Feb 2023 10:38:51 +0000 (11:38 +0100)
committerPhilip Kaludercic <philipk@posteo.net>
Thu, 16 Feb 2023 10:38:51 +0000 (11:38 +0100)
* lisp/emacs-lisp/package-vc.el (package-vc-install-dependencies):
Check if two package names are eq, instead checking the structural
equality of package-desc objects.

lisp/emacs-lisp/package-vc.el

index 05df89d264e49b014db10c23e502f8689c915293..b753adcb8a091451698ec1bbd143a64c3b5d94e1 100644 (file)
@@ -440,7 +440,7 @@ version of that package."
                    (package-desc-version a)))
                 (duplicate-p (a b)
                   "Are A and B the same package?"
-                  (equal a (car b)))
+                  (eq (package-desc-name a) (package-desc-name b)))
                 (depends-on-p (target package)
                   "Does PACKAGE depend on TARGET?"
                   (or (eq target package)
@@ -457,7 +457,7 @@ version of that package."
                         (depends-on-p desc-a desc-b)))))
       (mapc #'search requirements)
       (cl-callf sort to-install #'version-order)
-      (cl-callf seq-uniq to-install)
+      (cl-callf seq-uniq to-install #'duplicate-p)
       (cl-callf sort to-install #'dependent-order))
     (mapc #'package-install-from-archive to-install)
     missing))