bug-gnu-emacs
[Top][All Lists]
Advanced

[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 Kangas
Subject: bug#59923: Error when installing non-existent package add trailing dash character to package name
Date: Sun, 11 Dec 2022 10:03:31 -0800

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>> 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

Thanks, installed (commit 3e349ee119).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]