From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Mendler via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74556: 30.0.92; Package upgrade can fail and results in deleted package Date: Tue, 10 Dec 2024 16:05:17 +0100 Message-ID: <87zfl3h93m.fsf@daniel-mendler.de> References: <87plmgq55e.fsf@daniel-mendler.de> <87zflj62ai.fsf@posteo.net> <87v7w7617o.fsf@posteo.net> <86ttbfism4.fsf@gnu.org> <87v7vvz0ay.fsf@posteo.net> Reply-To: Daniel Mendler Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7450"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 74556@debbugs.gnu.org To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 10 16:08:23 2024 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 1tL1qZ-0001ky-9P for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Dec 2024 16:08:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tL1qG-0000Yr-JB; Tue, 10 Dec 2024 10:08:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tL1qF-0000YW-C7 for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2024 10:08:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tL1qF-0006UI-3j for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2024 10:08:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=oPYvXfbbn6eBE2Tr4MSjR5F4VVRhNWLVEI+i9227Y+g=; b=BS02mqaqYMGgT81VQNv5wuWARcOO0t9UHaTtQLRLvbJLzJL3K0YQ9g69vf0mkijbEQfGcjHeG2YXetsbu0B0/3S5DzpHDKTgAI2/ZQaaedVZvuj++mIoKolAnwlgbeieblXfVKxDKJrGKg2UtiL7X5NfOJZYyQivJ/ObusAzo0W6IohuwxOdz9OEXlEOjtFfB8uFItrB9JWTl6hliEDmWl9fJ8ZwHcEq4rPo5TmoXoHyRrR3I51aSxQy/eIH6NbKnIYwNRsIaocweMGeS6WoesXKzab+KqwkJLZ+eo3us6rM+yDxuB3E5lzi9E8zuSwIiXFsJQWpjPxLlhi1ox+OLQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tL1qE-000585-Hk for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2024 10:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Mendler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Dec 2024 15:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74556 X-GNU-PR-Package: emacs Original-Received: via spool by 74556-submit@debbugs.gnu.org id=B74556.173384325919624 (code B ref 74556); Tue, 10 Dec 2024 15:08:02 +0000 Original-Received: (at 74556) by debbugs.gnu.org; 10 Dec 2024 15:07:39 +0000 Original-Received: from localhost ([127.0.0.1]:59093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tL1pq-00056R-Fe for submit@debbugs.gnu.org; Tue, 10 Dec 2024 10:07:38 -0500 Original-Received: from server.qxqx.de ([49.12.34.165]:54937 helo=mail.qxqx.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tL1pn-00055w-B3 for 74556@debbugs.gnu.org; Tue, 10 Dec 2024 10:07:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=daniel-mendler.de; s=key; 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=oPYvXfbbn6eBE2Tr4MSjR5F4VVRhNWLVEI+i9227Y+g=; b=PU61yV+LuxLHGVK4Lyc7yu7Get V/JY4pLOCvque0fvZSTFmW0C6f6oDdORilbtLjXXuXjfEs89mj88y2n9ib7mzOMCHp8QeRPaJjp18 vjCGSrVDpUE167Z07ixlB6A/4roeGAB6VVix9QbEFvhYQA29ibKvFRle0hQ8XWDw9NP0=; In-Reply-To: <87v7vvz0ay.fsf@posteo.net> (Philip Kaludercic's message of "Sat, 07 Dec 2024 20:48:53 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296757 Archived-At: Philip Kaludercic writes: > Eli Zaretskii writes: > >>> Cc: 74556@debbugs.gnu.org >>> From: Philip Kaludercic >>> Date: Thu, 28 Nov 2024 11:34:51 +0000 >>> >>> Philip Kaludercic writes: >>> >>> [...] >>> >>> > It might make sense to try and "deactivate" a package before installing >>> > the new package. Looking into some second-try fallback for >>> > package-install to refresh the package index if a package was not found >>> > would also be a good idea ^^ >>> >>> This might do it? >> >> Philip, please install this on the emacs-30 branch, unless you see any >> problems with the change. We'd like to make another pretest soon. > > Done. But we should keep the report open as there might be better > approaches to discuss in the future. Hello Philip, I just tried the modified `package-upgrade' function and it doesn't seem to work. It seems to break the upgrade procedure in an even worse way, at least in my setup. Now `package-install' is tried first with the package symbol, which will be a no-op, since the package is already installed. Afterwards the package is deleted and we always end up with no package. Probably `package-install' should also be called with a package descriptor of the new package version? Thanks! Daniel