From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: upgrading packages via script Date: Wed, 27 Sep 2017 15:21:26 +0200 Message-ID: <877ewkz38p.fsf@web.de> References: <87poadcxx2.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1506518540 11824 195.159.176.226 (27 Sep 2017 13:22:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 27 Sep 2017 13:22:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Seb Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 27 15:22:09 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxCHw-0002D4-9d for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Sep 2017 15:22:08 +0200 Original-Received: from localhost ([::1]:54823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxCI2-00009G-1w for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Sep 2017 09:22:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dxCHP-00008L-Pw for help-gnu-emacs@gnu.org; Wed, 27 Sep 2017 09:21:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dxCHM-00083i-Ln for help-gnu-emacs@gnu.org; Wed, 27 Sep 2017 09:21:35 -0400 Original-Received: from mout.web.de ([212.227.17.12]:61811) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dxCHM-00082U-Af for help-gnu-emacs@gnu.org; Wed, 27 Sep 2017 09:21:32 -0400 Original-Received: from drachen.dragon ([92.74.174.244]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MAvGa-1e73eF1yc8-009ur7; Wed, 27 Sep 2017 15:21:27 +0200 In-Reply-To: <87poadcxx2.fsf@gmail.com> (Seb's message of "Tue, 26 Sep 2017 09:55:05 -0500") X-Provags-ID: V03:K0:rp/Lub5QhR8O474xwhkoJr8eb2VuKMLoFKWS3OwHc8IpyzZzCoe 44Yw2lPktC7ZWXbMnQ59VOHIfpD+dxyxVSIhRVTvwElwJHm9wgQJRCJppuYk1GhYACLIq6b W0vonE3ORRgnl4cJt/DBIS8kbYIdkFKUwuBi5iPUke56wghBWWhLYSllBBreYfAHQWGEGDn /+HPNl4+95JxYgcrCivuQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:logcGEH0HfA=:uTe9Ax0gdVi8/cUMSmldOb C8WsGTLYHdxbBU4oazLP57OnyuAzjXdxbbUUSJr6CF41OsaF7et60wKfLFcV0bakMgiisXLMZ R1NFYvw2QeQsT+sE53jm5YAhomenR1GbBYpCD6JgvqqSYqOAycTVU9xNcQBL36cr7KyqL260R CkDBiffl+BLFUeh12v3NLudQyP7wAvkojcDQcxEyjt6YLlBLTgRqVdy9xvWIdkv7uQBR8bLCt w7fMXQA8kP7QsjylAJTbr/WPN7QoRrN95vi/bj/+z/mUWBilNcRsEVTs0QbfVK3/U+wOcRZ8m 8bFAfiPeUD5HIMkbVGCVU5OqDeX2XPjNmftfSIyHZuFQfW3xQjLONP/LHkDGQSZmTHHbyLvLs tRZWUjZxxgIq01LbIdgwU+9L5VLyxujKvrPRYpjuQDbWAkm747qrq1OUuJZolUIGIihAfJUeS rBPUcmPDCc/F7b6rQO2DbpHCuoaRGZ8SKjVne3ukJqUL8dZzx9ApxrRPIkOmXPjV67j4M0kmi pYiuXMJrnHrtBIuZ+rRpvAeKa3Nv7OdkYWxBJEyc6LzxrHJIrBUmazJYKO8nkRYhqr+VSYsy6 FPNsFrLUiG0+F2uUmTyU3pSpcxXxJwr0TBCFN45v5zxiQny/4kgyEM5zyrX7uSgPsUz4xe+mn kBbG3zg2Qfk1yhkxHxBBe8Bvj7ZTJIo3SHd2tuw17HU7yQALah/ZsbNs9ujLnPFYfw/kJrQdl FmzWgRH4JSpsfVU5AFknvcOGIvZOJU/nd9bl4ara31bU1XUBiUGOLApmit3x1+cqTfH+604U X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114438 Archived-At: Seb writes: > =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80 [ upgrade_packages= .el ] > =E2=94=82 (setq package-archives > =E2=94=82 (quote > =E2=94=82 (("gnu" . "http://elpa.gnu.org/packages/") > =E2=94=82 ("melpa" . "http://melpa.org/packages/") > =E2=94=82 ("marmalade" . "https://marmalade-repo.org/packages/") > =E2=94=82 ("org" . "http://orgmode.org/elpa/")))) > =E2=94=82 (package-initialize) > =E2=94=82 (list-packages) > =E2=94=82 (package-menu-mark-upgrades) > =E2=94=82 (package-menu-execute t) > =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80 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. Michael.