mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-29 04:58:53 +08:00
Give a nicer error for missing ELPA package
This commit is contained in:
parent
f7bb3855b2
commit
ddf128195b
|
@ -54,7 +54,10 @@ ALIST-ELEM should be an element from `package-alist' or
|
|||
;; In 24.4+ we have a list of descs, earlier versions just use the
|
||||
;; name (a symbol) to specify the package.
|
||||
(let* ((descs (cdr (assq pkg package-archive-contents))))
|
||||
(if (listp descs) (car descs) pkg)))
|
||||
(cond
|
||||
((consp descs) (car descs))
|
||||
((null descs) (error "Couln't find package `%s'" pkg))
|
||||
(t pkg))))
|
||||
|
||||
(defun el-get-elpa-package-archive-base (pkg)
|
||||
"Compat wrapper for `package-archive-base'."
|
||||
|
|
Loading…
Reference in New Issue
Block a user