aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph Turner2023-09-02 10:14:22 -0700
committerPhilip Kaludercic2023-09-03 09:02:22 +0200
commit94431c0d2f645ff509af2fc841fa264492c8ac93 (patch)
treebf3699aca9864dc0455de88f1f46b9a3d47cdec1
parent335631506dc68b28a156ad0e8b31ae479ae7b851 (diff)
downloademacs-94431c0d2f645ff509af2fc841fa264492c8ac93.tar.gz
emacs-94431c0d2f645ff509af2fc841fa264492c8ac93.zip
Don't native compile lock files
* lisp/emacs-lisp/package.el (package--delete-directory): Exclude lock files in regex. (Bug#65666)
-rw-r--r--lisp/emacs-lisp/package.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 43842cfea73..3a019905960 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -2487,7 +2487,9 @@ Clean-up the corresponding .eln files if Emacs is native
2487compiled." 2487compiled."
2488 (when (featurep 'native-compile) 2488 (when (featurep 'native-compile)
2489 (cl-loop 2489 (cl-loop
2490 for file in (directory-files-recursively dir "\\.el\\'") 2490 for file in (directory-files-recursively dir
2491 ;; Exclude lockfiles
2492 (rx bos (or (and "." (not "#")) (not ".")) (* nonl) ".el" eos))
2491 do (comp-clean-up-stale-eln (comp-el-to-eln-filename file)))) 2493 do (comp-clean-up-stale-eln (comp-el-to-eln-filename file))))
2492 (if (file-symlink-p (directory-file-name dir)) 2494 (if (file-symlink-p (directory-file-name dir))
2493 (delete-file (directory-file-name dir)) 2495 (delete-file (directory-file-name dir))