]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't put deleted packages in the trash (bug#14967)
authorGlenn Morris <rgm@gnu.org>
Mon, 19 Jun 2017 18:39:25 +0000 (14:39 -0400)
committerGlenn Morris <rgm@gnu.org>
Mon, 19 Jun 2017 18:39:25 +0000 (14:39 -0400)
* lisp/emacs-lisp/package.el (package-delete):
Don't pay attention to delete-by-moving-to-trash.

; * etc/NEWS: Mention this.

etc/NEWS
lisp/emacs-lisp/package.el

index 85d12733670ed24031fd7970434dd09c4f6dfcd3..78d374840aae7a96f8c40c5b2a33787483d447e7 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -755,6 +755,9 @@ header's value.
 where the GnuPG home directory (used for signature verification) is
 located and whether GnuPG's option "--homedir" is used or not.
 
+---
+*** Deleting a package no longer respects 'delete-by-moving-to-trash'.
+
 ** Tramp
 
 +++
index bebfd18d7a6cbbac3ec45fb49189d3eaf1d9361b..4245294457f65b8613994c43db6cc80dd7d5aa62 100644 (file)
@@ -2127,7 +2127,7 @@ If NOSAVE is non-nil, the package is not removed from
                   (package-desc-name pkg-used-elsewhere-by)))
           (t
            (add-hook 'post-command-hook #'package-menu--post-refresh)
-           (delete-directory dir t t)
+           (delete-directory dir t)
            ;; Remove NAME-VERSION.signed and NAME-readme.txt files.
            (dolist (suffix '(".signed" "readme.txt"))
              (let* ((version (package-version-join (package-desc-version pkg-desc)))