]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix package reloading problems on systems with symlinks
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 25 Dec 2020 21:44:56 +0000 (22:44 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 25 Dec 2020 21:44:56 +0000 (22:44 +0100)
* lisp/emacs-lisp/package.el (package--files-load-history): We're
comparing the truenames, so ensure that we've using that
everywhere.  This fixes problems when there's symlinks in the paths.

lisp/emacs-lisp/package.el

index 0170e61e126a06266509104182ab55e00d954fb1..bc450b09d015739db4ccee1a04f0fe562f4d2803 100644 (file)
@@ -830,7 +830,7 @@ correspond to previously loaded files (those returned by
         (mapcar (lambda (x)
                   (let ((f (car x)))
                     (and (stringp f)
-                         (file-name-sans-extension f))))
+                         (file-name-sans-extension (file-truename f)))))
                 load-history)))
 
 (defun package--list-of-conflicts (dir history)