* bug#69366: 30.0.50; package.el reports wrong number of packages that can be upgraded
@ 2024-02-25 5:47 ` Jim Porter
2024-03-28 23:19 ` Andy Rosen via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 2+ messages in thread
From: Jim Porter @ 2024-02-25 5:47 UTC (permalink / raw)
To: 69366
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).
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#69366: 30.0.50; package.el reports wrong number of packages that can be upgraded
2024-02-25 5:47 ` bug#69366: 30.0.50; package.el reports wrong number of packages that can be upgraded Jim Porter
@ 2024-03-28 23:19 ` Andy Rosen via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 0 replies; 2+ messages in thread
From: Andy Rosen via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-03-28 23:19 UTC (permalink / raw)
To: 69366
A simple fix would be to change the last line of
'package-menu--find-upgrades', to return '(delete-dups upgrades)'
instead of 'upgrades’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-28 23:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CF2C19A9-3718-4AD9-987D-CFBF33DBD055@corp.mlfs.org>
2024-02-25 5:47 ` bug#69366: 30.0.50; package.el reports wrong number of packages that can be upgraded Jim Porter
2024-03-28 23:19 ` Andy Rosen via Bug reports for GNU Emacs, the Swiss army knife of text editors
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.