From: Philip Kaludercic Date: Sat, 12 Nov 2022 08:18:19 +0000 (+0100) Subject: Raise 'wrong-type-argument' when installing package nil X-Git-Tag: emacs-29.0.90~1616^2~76 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=aa56e50fe21cd07bc6aab5ceecc2e92288793a8b;p=emacs.git Raise 'wrong-type-argument' when installing package nil * lisp/emacs-lisp/package-vc.el (package-vc-install): Check if the package is nil. --- diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el index 62724d398c1..36d17c6116b 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