diff options
| author | Philip Kaludercic | 2025-04-27 17:28:57 +0200 |
|---|---|---|
| committer | Philip Kaludercic | 2025-04-30 23:39:38 +0200 |
| commit | b81f937e60b2fb499820e708d1ff4ba349df5f1a (patch) | |
| tree | 414230b1189ca3fa1fea98ca70be98ca9ea7e356 | |
| parent | 766adfa8a731683c221630c3fee5aa5ace22428e (diff) | |
| download | emacs-b81f937e60b2fb499820e708d1ff4ba349df5f1a.tar.gz emacs-b81f937e60b2fb499820e708d1ff4ba349df5f1a.zip | |
Do a deep-copy when installing a package from a local package
* lisp/emacs-lisp/package.el (package-unpack, package-dir-info):
Call 'directory-files-recursively' with appropriate arguments.
(Bug#78017)
| -rw-r--r-- | lisp/emacs-lisp/package.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index a255778af64..66f6b795a5e 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el | |||
| @@ -1007,8 +1007,7 @@ untar into a directory named DIR; otherwise, signal an error." | |||
| 1007 | ('dir | 1007 | ('dir |
| 1008 | (make-directory pkg-dir t) | 1008 | (make-directory pkg-dir t) |
| 1009 | (let ((file-list | 1009 | (let ((file-list |
| 1010 | (directory-files | 1010 | (directory-files-recursively default-directory "" nil))) |
| 1011 | default-directory 'full "\\`[^.].*\\.el\\'" 'nosort))) | ||
| 1012 | (dolist (source-file file-list) | 1011 | (dolist (source-file file-list) |
| 1013 | (let ((target-el-file | 1012 | (let ((target-el-file |
| 1014 | (expand-file-name (file-name-nondirectory source-file) pkg-dir))) | 1013 | (expand-file-name (file-name-nondirectory source-file) pkg-dir))) |
| @@ -1252,7 +1251,7 @@ The return result is a `package-desc'." | |||
| 1252 | (with-temp-buffer | 1251 | (with-temp-buffer |
| 1253 | (insert-file-contents desc-file) | 1252 | (insert-file-contents desc-file) |
| 1254 | (package--read-pkg-desc 'dir)) | 1253 | (package--read-pkg-desc 'dir)) |
| 1255 | (let ((files (directory-files default-directory t "\\.el\\'" t)) | 1254 | (let ((files (directory-files-recursively default-directory "\\.el\\'")) |
| 1256 | info) | 1255 | info) |
| 1257 | (while files | 1256 | (while files |
| 1258 | (with-temp-buffer | 1257 | (with-temp-buffer |