GNU bug report logs - #77188
31.0.50; describe-package: Duplicate installed versions and incorrect Install button state

Previous Next

Package: emacs;

Reported by: david <davidimagid <at> gmail.com>

Date: Sat, 22 Mar 2025 17:43:02 UTC

Severity: normal

Found in version 31.0.50

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: david <davidimagid <at> gmail.com>, Philip Kaludercic <philipk <at> posteo.net>, Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 77188 <at> debbugs.gnu.org
Subject: bug#77188: 31.0.50; describe-package: Duplicate installed versions and incorrect Install button state
Date: Sat, 29 Mar 2025 15:08:46 +0300
> From: david <davidimagid <at> gmail.com>
> Date: Sat, 22 Mar 2025 13:42:21 -0400
> 
> Hi Emacs developers,
> 
> I found a bug in the `describe-package` interface.  Here are the steps
> to reproduce it:
> 
> 1. Open Emacs and run `M-x list-packages RET`.
> 2. Click on a package that is already installed (Status: Installed).
> 3. In the "Other versions" section, click on the same version that is
>    already installed.
> 4. The package description now shows "Install" even though the package
>    is already installed.
> 5. If you click "Install", the package is reinstalled, and the "Other
>    versions" section shows the same version twice as installed.
> 
> The same behavior occurs for packages with Status: dependency.  The
> difference is that when you click "Install" in `describe-package`, the
> package changes its status in `list-packages` from "dependency" to
> "installed".  Additionally, the package appears duplicated in the "Other
> versions" section.  However, after restarting Emacs, the package returns
> to its original "dependency" status in `list-packages`.
> 
> Expected behavior:
> - The "Install" button should not be shown if the package is already
>   installed.  Alternatively, the button could be renamed to "Reinstall"
>   or replaced with a "Delete" button to better reflect the available
>   actions for an already installed package.
> - The "Other versions" section should not display duplicate entries for
>   the same installed version.  If you click "Install" again, the package
>   is overwritten, and a third duplicate entry appears as installed.
> 
> In GNU Emacs 31.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version
>  3.24.43, cairo version 1.18.2) of 2025-03-16 built on fedora
> Repository revision: eab14d68b2e72b9a6b8b0cc67c9667c2bfbed4f5
> Repository branch: master
> System Description: Fedora Linux 41 (Workstation Edition)
> 
> Configured using:
>  'configure --with-imagemagick --with-pgtk --with-tree-sitter
>  --with-mailutils --with-sound=yes --with-pdumper=yes
>  --with-dumping=pdumper --with-file-notification=yes --with-gnutls'

Thanks.

Philip and Stefan, any comments?




This bug report was last modified 67 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.