Commit 68024463 authored by Baris Metin's avatar Baris Metin

el-get-source-name should handle nil correctly. listp on nil is true.

parent 704d53d2
......@@ -133,7 +133,7 @@ returning a list that contains it (and only it)."
(defun el-get-source-name (source)
"Return the package name (stringp) given an `el-get-sources'
(if (listp source)
(if (and source (listp source))
(format "%s" (or (plist-get source :name)
(error "Source does not have a :name property: %S" source)))
(symbol-name source)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment