Fix error message when installing non-existent package
* lisp/emacs-lisp/package.el (package-compute-transaction): Don't add trailing dash to package name in non-existent package error. (Bug#59923)
This commit is contained in:
parent
733cdeabfb
commit
3e349ee119
1 changed files with 4 additions and 2 deletions
|
@ -1949,8 +1949,10 @@ SEEN is used internally to detect infinite recursion."
|
|||
(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))))))
|
||||
(error (if (not next-version)
|
||||
(format "Package `%s' is unavailable" next-pkg)
|
||||
(format "Package `%s' (version %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
Add a link
Reference in a new issue