[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: upgrading packages via script
From: |
Seb |
Subject: |
Re: upgrading packages via script |
Date: |
Wed, 27 Sep 2017 10:33:50 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
On Wed, 27 Sep 2017 15:21:26 +0200,
Michael Heerdegen <michael_heerdegen@web.de> wrote:
> Seb <spluque@gmail.com> writes:
>> ╭───── [ upgrade_packages.el ] │ (setq package-archives │ (quote │
>> (("gnu" . "http://elpa.gnu.org/packages/") │ ("melpa"
>> . "http://melpa.org/packages/") │ ("marmalade"
>> . "https://marmalade-repo.org/packages/") │ ("org"
>> . "http://orgmode.org/elpa/")))) │ (package-initialize) │
>> (list-packages) │ (package-menu-mark-upgrades) │
>> (package-menu-execute t) ╰─────
> My first guess would be that in nature, one has to wait until the
> package manager has refreshed the view before one can select packages
> to upgrade. Your script finishes before that because updating the
> package list happens asynchronously.
That was also my first guess, but in that case shouldn't
(package-menu-execute t) fail altogether?
--
Seb