]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "* lisp/emacs-lisp/comp.el (comp-clean-up-stale-eln): Clean-up all..."
authorAndrea Corallo <akrl@sdf.org>
Sun, 21 Mar 2021 14:32:52 +0000 (15:32 +0100)
committerAndrea Corallo <akrl@sdf.org>
Sun, 21 Mar 2021 14:34:38 +0000 (15:34 +0100)
This reverts commit be22cda7be9e77e67f224f6f07cca9dd44aaa078.

Older binaries might still need those .eln if they where preloaded.

lisp/emacs-lisp/comp.el

index 76b4733cfaa3cfc745a91d4283c9c2a8f70d254c..37b61edeb0c4d479d9ba0b2dd0c6829529dcdb77 100644 (file)
@@ -3776,14 +3776,11 @@ sharing the original source filename (including FILE)."
      with filename-hash = (match-string 1 file)
      with regexp = (rx-to-string
                     `(seq "-" ,filename-hash "-" (1+ hex) ".eln" eos))
-     for dir in (comp-eln-load-path-eff)
+     for dir in (butlast (comp-eln-load-path-eff)) ; Skip last dir.
      do (cl-loop
          for f in (when (file-exists-p dir)
                    (directory-files dir t regexp t))
-         ;; We may not be able to delete de file if we have no write
-         ;; permisison.
-         do (ignore-error file-error
-              (comp-delete-or-replace-file f))))))
+         do (comp-delete-or-replace-file f)))))
 
 (defun comp-delete-or-replace-file (oldfile &optional newfile)
   "Replace OLDFILE with NEWFILE.