1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-18 18:05:07 +00:00

emacs-lisp/package.el (package-delete): Delete package completely

* emacs-lisp/package.el (package-delete): Also delete the package
name from `package-alist', not its description only.
This commit is contained in:
Bastien Guerry 2014-01-07 11:58:03 +01:00
parent e9be0a138c
commit 2b6b4f204c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-01-07 Bastien Guerry <bzg@gnu.org>
* emacs-lisp/package.el (package-delete): Also delete the package
name from `package-alist', not its description only.
2014-01-07 Glenn Morris <rgm@gnu.org>
* help.el (view-external-packages):

View File

@ -1231,7 +1231,7 @@ The file can either be a tar file or an Emacs Lisp file."
(delete-file signed-file)))
;; Update package-alist.
(let* ((name (package-desc-name pkg-desc)))
(delete pkg-desc (assq name package-alist)))
(delete (delete pkg-desc (assq name package-alist)) package-alist))
(message "Package `%s' deleted." (package-desc-full-name pkg-desc)))))
(defun package-archive-base (desc)