summaryrefslogtreecommitdiff
path: root/helm-elisp-package.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2018-03-31 10:42:58 +0200
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2018-03-31 10:42:58 +0200
commit2c5056a5df08c891b91b61b19325a4b820bd334b (patch)
tree1b945e6da69bf4734e965d85ff5bce0695120a05 /helm-elisp-package.el
parentd6286dd3601939b669cfc638b60be19aa07d7a53 (diff)
Fix deletion of packages in emacs-27
* helm-elisp-package.el (helm-el-package-uninstall-1): Do it.
Diffstat (limited to 'helm-elisp-package.el')
-rw-r--r--helm-elisp-package.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/helm-elisp-package.el b/helm-elisp-package.el
index f7366872..e95f6c9e 100644
--- a/helm-elisp-package.el
+++ b/helm-elisp-package.el
@@ -159,7 +159,9 @@
(package-delete (symbol-name (car id))
(package-version-join (cdr id)))))
(error (message (cadr err))))
- unless (assoc (elt id 1) package-alist)
+ ;; Seems like package-descs are symbols with props instead of
+ ;; vectors in emacs-27.
+ unless (assoc (if (sequencep id) (elt id 1) id) package-alist)
collect (if (fboundp 'package-desc-full-name)
id
(cons (symbol-name (car id))