]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid reusing :lisp-dir twice in 'package-vc--main-file'
authorPhilip Kaludercic <philipk@posteo.net>
Wed, 22 Feb 2023 14:28:44 +0000 (15:28 +0100)
committerPhilip Kaludercic <philipk@posteo.net>
Fri, 24 Feb 2023 16:14:19 +0000 (17:14 +0100)
* lisp/emacs-lisp/package-vc.el (package-vc--main-file): Just use
:lisp-dir from 'package-desc-extras', not 'pkg-spec'.

This avoid appending the contents of :lisp-dir twice, in case it is
specified both in pkg-spec and pkg-desc.

lisp/emacs-lisp/package-vc.el

index b22823fd70680d2389bf9f3939ed2d3d380d5335..ea2766b8dc43e9d36f4b401689de8d3c35a6b138 100644 (file)
@@ -309,7 +309,6 @@ asynchronously."
          (directory (file-name-concat
                      (or (package-desc-dir pkg-desc)
                          (expand-file-name name package-user-dir))
-                     (plist-get pkg-spec :lisp-dir)
                      (and-let* ((extras (package-desc-extras pkg-desc)))
                        (alist-get :lisp-dir extras))))
          (file (or (plist-get pkg-spec :main-file)