From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#39187: Fwd: "Package refresh is already in progress, please wait..." Date: Sun, 09 Feb 2020 21:33:45 +0100 Message-ID: <8736bj7b6e.fsf@marxist.se> References: <87muakus4m.fsf@marxist.se> <87iml2f34b.fsf@marxist.se> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="124194"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 39187@debbugs.gnu.org To: Jean-Christophe Helary Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 09 21:34:17 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j0tHU-000WD1-6X for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 Feb 2020 21:34:16 +0100 Original-Received: from localhost ([::1]:54282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0tHS-0007Vv-SY for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 Feb 2020 15:34:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38947) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0tHI-0007Va-Rg for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2020 15:34:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0tHH-0007In-NU for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2020 15:34:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47296) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j0tHH-0007HU-K4 for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2020 15:34:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j0tHG-0004Zm-0n for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2020 15:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Feb 2020 20:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39187 X-GNU-PR-Package: emacs Original-Received: via spool by 39187-submit@debbugs.gnu.org id=B39187.158128043417577 (code B ref 39187); Sun, 09 Feb 2020 20:34:01 +0000 Original-Received: (at 39187) by debbugs.gnu.org; 9 Feb 2020 20:33:54 +0000 Original-Received: from localhost ([127.0.0.1]:53269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0tH8-0004ZR-DX for submit@debbugs.gnu.org; Sun, 09 Feb 2020 15:33:54 -0500 Original-Received: from ted.gofardesign.uk ([67.225.143.91]:45874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0tH6-0004ZE-Oc for 39187@debbugs.gnu.org; Sun, 09 Feb 2020 15:33:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Rt1PSOJgAmbZzsgX8rPJA7wzMK8faOX+440BXRuBLk8=; b=Yp0ZpsqOLyiAz34h6tknj3pvoo wDSwCUh3cahSjcpBvXj2l+mW5hdva0Jbiy4gKIWdhL7ykNGYueBEpnJcMjlLPb64ECpx3g7FKH2PH XFnSzpjnZYCDe5K9lSTDFAca8j9AANdsoBc6X1W0Q6uC3Pn1p8t0AO+68lI2iOgb/a9D/4Qgip+CQ fJI0dcYM2PlCHqFhJ8fizeZ0rzntq2K0hMM5Q9N0m2EAHXAWpAPYmPA2tELVKONDbgVUmGp+5vpgx h8aFO1ojkKnNbSIcQ8ybeYqwgv13uReij8RHpU/6K0m308waihzocw5yqQ5d190l8k0w1KxplwROJ PmDjJSLA==; Original-Received: from h-4-70-69.a785.priv.bahnhof.se ([155.4.70.69]:38478 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1j0tH0-000EdS-Qy; Sun, 09 Feb 2020 15:33:47 -0500 In-Reply-To: <87iml2f34b.fsf@marxist.se> (Stefan Kangas's message of "Thu, 23 Jan 2020 19:18:28 +0100") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:175841 Archived-At: Stefan Kangas writes: > I see two ways forward: > > 1. Remove the warning and accept that we might launch several > processes doing the same update one after the other. I would like > to avoid that on master, but it might be the least intrusive change > for emacs-27. This part is now done on the emacs-27 branch. Please test it and see that it now works as before. > 2. When we run a refresh, save the current time. If the user tries to > run another refresh, check if more than X seconds has elapsed since > the old one was started. If it has been more than X seconds, > prompt the user to kill the old refresh and re-launch it. It won't > be perfect, but it will be better than what we had before at least. I'm working on a fix for the master branch as outlined above. Note that we probably also have to change the condition for the menu entry, see Bug#39436. Best regards, Stefan Kangas