[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master aa56e50fe2 23/42: Raise 'wrong-type-argument' when installing pac
From: |
Philip Kaludercic |
Subject: |
master aa56e50fe2 23/42: Raise 'wrong-type-argument' when installing package nil |
Date: |
Thu, 17 Nov 2022 14:56:22 -0500 (EST) |
branch: master
commit aa56e50fe21cd07bc6aab5ceecc2e92288793a8b
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Raise 'wrong-type-argument' when installing package nil
* lisp/emacs-lisp/package-vc.el (package-vc-install): Check if the
package is nil.
---
lisp/emacs-lisp/package-vc.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index 62724d398c..36d17c6116 100644
--- a/lisp/emacs-lisp/package-vc.el
+++ b/lisp/emacs-lisp/package-vc.el
@@ -648,6 +648,8 @@ uses `package-vc-heuristic-alist' to guess the backend."
(and current-prefix-arg :last-release)))))
(package-vc--archives-initialize)
(cond
+ ((null name-or-url)
+ (signal 'wrong-type-argument nil))
((and-let* (((stringp name-or-url))
(backend (or backend (package-vc--guess-backend name-or-url))))
(package-vc--unpack
- master 496c578d9c 22/42: Have 'package-vc-selected-packages' consider all installed packages, (continued)
- master 496c578d9c 22/42: Have 'package-vc-selected-packages' consider all installed packages, Philip Kaludercic, 2022/11/17
- master a467afbd98 25/42: Mention package name when package is lacking VC data, Philip Kaludercic, 2022/11/17
- master 7ab556b576 29/42: Improve robustness of 'package-vc-update', Philip Kaludercic, 2022/11/17
- master 3326337776 30/42: Avoid destructive manipulation of 'package-vc--archive-spec-alist', Philip Kaludercic, 2022/11/17
- master 32f51f17c4 33/42: Remove temporary .texi files if used to build documentation, Philip Kaludercic, 2022/11/17
- master 228c247e6f 34/42: Remove duplicate package descriptions after updating, Philip Kaludercic, 2022/11/17
- master 4bd7ae833f 36/42: Allow the direct installation of package specifications, Philip Kaludercic, 2022/11/17
- master 53c90abfa8 37/42: ; * lisp/emacs-lisp/package-vc.el: Update TODO, Philip Kaludercic, 2022/11/17
- master aadf07f5b8 05/42: Autoload 'package-vc-install-selected-packages', Philip Kaludercic, 2022/11/17
- master 9f4a433b27 12/42: Fix generation of documentation for source packages, Philip Kaludercic, 2022/11/17
- master aa56e50fe2 23/42: Raise 'wrong-type-argument' when installing package nil,
Philip Kaludercic <=
- master d0ea38b5fe 27/42: Have 'vc-prepare-patch' handle prefix arguments., Philip Kaludercic, 2022/11/17
- master 2ed115fc3c 21/42: Fix indefinite loading of asynchronous downloads, Philip Kaludercic, 2022/11/17
- master a6cd44734d 18/42: Remove unused variable in 'package-vc--unpack', Philip Kaludercic, 2022/11/17
- master fd4da9151f 28/42: * lisp/vc/vc.el (vc-default-last-change): Use 'vc-call', Philip Kaludercic, 2022/11/17
- master c8e5069e6d 24/42: Add new command 'package-vc-update-all', Philip Kaludercic, 2022/11/17
- master 345bfd376e 31/42: Add missing elpa-package.eld to package test resources, Philip Kaludercic, 2022/11/17
- master 4aee4cde3a 26/42: Explain that 'package-vc-install' doesn't remove tarball packages, Philip Kaludercic, 2022/11/17
- master 11cb810356 32/42: Fix the behaviour of 'byte-compile-ignore-files', Philip Kaludercic, 2022/11/17
- master 874d8a418f 35/42: Only fetch elpa-packages.eld when necessary, Philip Kaludercic, 2022/11/17
- master 5b8f165f75 38/42: Fix issues related to 'package-vc-install-from-checkout', Philip Kaludercic, 2022/11/17