unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* package-install-selected-packages and newer versions
@ 2023-07-27  7:35 Jarmo Hurri
  2023-07-27  9:45 ` Tassilo Horn
  0 siblings, 1 reply; 4+ messages in thread
From: Jarmo Hurri @ 2023-07-27  7:35 UTC (permalink / raw)
  To: emacs-devel


Greetings.

I was trying to use the nice variable package-selected-packages and the
associated function package-install-selected-packages to automate
package installation on my multiple systems. I ran into a problem
because package-install-selected-packages does not check whether a newer
version of a package is available.

My emacs 28.2 comes with org 9.5.5, while ELPA has org 9.6.7. With

(customize-set-variable 'package-selected-packages (quote (org haskell-mode htmlize yaml-mode dash)))

function package-install-selected-packages will skip org due to the fact
that (package-installed-p 'org) evaluates to true, and packages that are
already installed are ignored (package.el):

(let* ((not-installed (seq-remove #'package-installed-p package-selected-packages))

Would it be desirable to add an option to install a newer version if one
is available?

All the best,

Jarmo




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-07-27 15:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-27  7:35 package-install-selected-packages and newer versions Jarmo Hurri
2023-07-27  9:45 ` Tassilo Horn
2023-07-27 10:27   ` Jarmo Hurri
2023-07-27 15:01     ` Tassilo Horn

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).