[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/package-vc-fixes c383864f96 46/48: Have 'package-delete' handle
From: |
Philip Kaludercic |
Subject: |
scratch/package-vc-fixes c383864f96 46/48: Have 'package-delete' handle symlinked packages correctly |
Date: |
Wed, 16 Nov 2022 04:50:11 -0500 (EST) |
branch: scratch/package-vc-fixes
commit c383864f96ab97889b734300153057b774931f4f
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Have 'package-delete' handle symlinked packages correctly
* lisp/emacs-lisp/package.el (package--delete-directory): Check if a
directory is a symbolic link.
---
lisp/emacs-lisp/package.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index aafb0e503d..f3d26ebeda 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -2448,7 +2448,9 @@ compiled."
(cl-loop
for file in (directory-files-recursively dir "\\.el\\'")
do (comp-clean-up-stale-eln (comp-el-to-eln-filename file))))
- (delete-directory dir t))
+ (if (file-symlink-p (directory-file-name dir))
+ (delete-file (directory-file-name dir))
+ (delete-directory dir t)))
(defun package-delete (pkg-desc &optional force nosave)
- scratch/package-vc-fixes c29189587b 07/48: Fix 'package-vc-selected-packages' documentation, (continued)
- scratch/package-vc-fixes c29189587b 07/48: Fix 'package-vc-selected-packages' documentation, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 6a46e7d3ee 17/48: Move package spec documentation to 'package-vc-selected-packages', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 58b2a64225 23/48: Fix edebug spec for 'package--with-response-buffer', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes b45d2fb4b2 29/48: * lisp/emacs-lisp/package-vc.el (package-vc-update-all): Add command, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes a10cd1b927 36/48: Fix accidental generation of circular lists, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes bc9c7aee30 34/48: Improve robustness of 'package-vc-update', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes a89f7bc1dc 27/48: Raise 'wrong-type-argument' when installing package nil, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 4730409de9 38/48: Fix the behaviour or 'byte-compile-ignore-files', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 663cb70e15 40/48: Remove temporary .texi files if used to build documentation, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 6b35279259 45/48: Fix issues related to 'package-vc-install-from-checkout', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes c383864f96 46/48: Have 'package-delete' handle symlinked packages correctly,
Philip Kaludercic <=
- scratch/package-vc-fixes 7815894592 11/48: Remove references to internal symbols from public docstrings, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 2121ef0899 12/48: Fix generation of documentation for source packages, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 4b30679030 15/48: Explain what "refreshing" a source package means, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes aab49e7baa 35/48: * lisp/emacs-lisp/package.el (package-lisp-dir): Fix return value, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes aeb386007b 04/48: Mark 'package-vc-install-selected-packages' as interactive, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 32310b69ab 01/48: ; Fix interactive spec for 'package-vc-refresh', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes bea359d186 05/48: Autoload 'package-vc-install-selected-packages', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes d051b24c3c 09/48: Clarify 'package-vc--build-documentation' docstring, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 7e15f35bac 19/48: Avoid using 'package-lisp-dir' in 'package-generate-autoloads', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 315a61bbc7 18/48: Remove unused variable in 'package-vc--unpack', Philip Kaludercic, 2022/11/16