Improve package.el error messages on too-old Emacsen
* lisp/emacs-lisp/package.el (package-compute-transaction): Give a better error message on too-old Emacs versions (bug#54747).
This commit is contained in:
parent
5c532fe303
commit
e2f3b0f16e
1 changed files with 6 additions and 2 deletions
|
@ -1854,8 +1854,12 @@ SEEN is used internally to detect infinite recursion."
|
|||
(error "Need package `%s-%s', but only %s is available"
|
||||
next-pkg (package-version-join next-version)
|
||||
found-something))
|
||||
(t (error "Package `%s-%s' is unavailable"
|
||||
next-pkg (package-version-join next-version)))))
|
||||
(t
|
||||
(if (eq next-pkg 'emacs)
|
||||
(error "This package requires Emacs version %s"
|
||||
(package-version-join next-version))
|
||||
(error "Package `%s-%s' is unavailable"
|
||||
next-pkg (package-version-join next-version))))))
|
||||
(setq packages
|
||||
(package-compute-transaction (cons found packages)
|
||||
(package-desc-reqs found)
|
||||
|
|
Loading…
Add table
Reference in a new issue