Raise 'wrong-type-argument' when installing package nil

* lisp/emacs-lisp/package-vc.el (package-vc-install): Check if the
package is nil.
This commit is contained in:
Philip Kaludercic 2022-11-12 09:18:19 +01:00
parent 496c578d9c
commit aa56e50fe2

View file

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