Don't put deleted packages in the trash (bug#14967)

* lisp/emacs-lisp/package.el (package-delete):
Don't pay attention to delete-by-moving-to-trash.

; * etc/NEWS: Mention this.
This commit is contained in:
Glenn Morris 2017-06-19 14:39:25 -04:00
parent b2fcba4484
commit 65b323e14e
2 changed files with 4 additions and 1 deletions

View file

@ -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
+++

View 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)))