[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/package-vc-fixes 3c74b9b197 3/3: Raise 'wrong-type-argument' whe
From: |
Philip Kaludercic |
Subject: |
scratch/package-vc-fixes 3c74b9b197 3/3: Raise 'wrong-type-argument' when installing package nil |
Date: |
Sat, 12 Nov 2022 03:28:09 -0500 (EST) |
branch: scratch/package-vc-fixes
commit 3c74b9b197642ca605ee382e755c628dcfbd15ca
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 8dabd42771..750847f46e 100644
--- a/lisp/emacs-lisp/package-vc.el
+++ b/lisp/emacs-lisp/package-vc.el
@@ -632,6 +632,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