]> git.eshelyaron.com Git - emacs.git/commitdiff
Raise 'wrong-type-argument' when installing package nil
authorPhilip Kaludercic <philipk@posteo.net>
Sat, 12 Nov 2022 08:18:19 +0000 (09:18 +0100)
committerPhilip Kaludercic <philipk@posteo.net>
Thu, 17 Nov 2022 19:37:28 +0000 (20:37 +0100)
* lisp/emacs-lisp/package-vc.el (package-vc-install): Check if the
package is nil.

lisp/emacs-lisp/package-vc.el

index 62724d398c13dc6778a11f673c77187a51a4a563..36d17c6116bfca95308a378892937d63319337f4 100644 (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