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:
parent
496c578d9c
commit
aa56e50fe2
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue