mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-29 04:58:53 +08:00
Add precondition for 'el-get-insecure-check
When URL parameter is nil, fail fast with explicit reason instead of throwing wrong-type-argument later on.
This commit is contained in:
parent
63be589c1d
commit
28946c386e
|
@ -39,6 +39,7 @@ following is true and retun nil:
|
|||
SCP-like syntax
|
||||
|
||||
- PACKAGE definition has a non-empty :checksum"
|
||||
(assert (stringp URL) nil "URL is nil, can't decide if it's safe to install package '%s'" PACKAGE)
|
||||
(let* ((checksum (plist-get (el-get-package-def PACKAGE) :checksum))
|
||||
(checksum-empty (or (not (stringp checksum))
|
||||
(if (fboundp 'string-blank-p)
|
||||
|
|
Loading…
Reference in New Issue
Block a user