[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 3e349ee119: Fix error message when installing non-existent pack
From: |
Stefan Kangas |
Subject: |
emacs-29 3e349ee119: Fix error message when installing non-existent package |
Date: |
Sun, 11 Dec 2022 13:03:04 -0500 (EST) |
branch: emacs-29
commit 3e349ee1198c7fc5187975c3e52e805a44f5b84b
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
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)
---
lisp/emacs-lisp/package.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index a9fd8c741e..4d33311cb7 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 3e349ee119: Fix error message when installing non-existent package,
Stefan Kangas <=