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

Found in version 30.0.50

Full log


View this message in rfc822 format

From: Jim Porter <jporterbugs <at> gmail.com>
To: 69366 <at> debbugs.gnu.org
Subject: bug#69366: 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).




This bug report was last modified 161 days ago.

Previous Next


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