From: Lars Ingebrigtsen Date: Fri, 25 Dec 2020 21:44:56 +0000 (+0100) Subject: Fix package reloading problems on systems with symlinks X-Git-Tag: emacs-28.0.90~4559 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d18b1c8c7583b981d4f3d687e49e82250d51634f;p=emacs.git Fix package reloading problems on systems with symlinks * 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. --- diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 0170e61e126..bc450b09d01 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -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)