GNU bug report logs - #69366
30.0.50; package.el reports wrong number of packages that can be upgraded

Previous Next

Package: emacs;

Reported by: Jim Porter <jporterbugs <at> gmail.com>

Date: Sun, 25 Feb 2024 05:48:01 UTC

Severity: normal

Found in version 30.0.50

To reply to this bug, email your comments to 69366 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#69366; Package emacs. (Sun, 25 Feb 2024 05:48:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jim Porter <jporterbugs <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 25 Feb 2024 05:48:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jim Porter <jporterbugs <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; package.el reports wrong number of packages that can be
 upgraded
Date: Sat, 24 Feb 2024 21:47:07 -0800
To reproduce this issue, you first need to install a built-in package 
from ELPA (Org and Tramp are good examples), and then wait until a new 
version is available. When calling 'list-packages', Emacs will then 
report that there are (say) 2 packages ready to upgrade. If you press 
"U" to mark the upgrades and then "x" to execute, it only upgrades a 
single package.

This happens because a built-in package installed from ELPA is counted 
twice in 'package-menu--find-upgrades': first for the ELPA version, and 
second for the built-in version. This function uses the actual buffer 
contents to compute the result; maybe it would be easier to get right by 
looking at 'package-alist' and 'package--builtins' (though that seems to 
require a bit of finagling too).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#69366; Package emacs. (Fri, 29 Mar 2024 04:08:05 GMT) Full text and rfc822 format available.

Message #8 received at 69366 <at> debbugs.gnu.org (full text, mbox):

From: Andy Rosen <ajr <at> corp.mlfs.org>
To: 69366 <at> debbugs.gnu.org <69366 <at> debbugs.gnu.org>
Subject: Re: bug#69366: 30.0.50; package.el reports wrong number of packages 
 that can be upgraded
Date: Thu, 28 Mar 2024 23:19:54 +0000
A simple fix would be to change the last line of
'package-menu--find-upgrades', to return '(delete-dups upgrades)'
instead of 'upgradesā€™.






This bug report was last modified 36 days ago.

Previous Next


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