[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#59923: Error when installing non-existent package add trailing dash
From: |
Stefan Monnier |
Subject: |
bug#59923: Error when installing non-existent package add trailing dash character to package name |
Date: |
Sun, 11 Dec 2022 09:28:50 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>> 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 @@ package-compute-transaction
>> (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)
>>
LGTM (modulo the wrapping introduced by email quoting, obviously :-)
Stefan