GNU bug report logs - #64995
package.el: Safer package upgrade

Previous Next

Package: emacs;

Reported by: Tegar Syahputra <dqs7cp2e <at> gmail.com>

Date: Tue, 1 Aug 2023 15:46:01 UTC

Severity: normal

To reply to this bug, email your comments to 64995 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#64995; Package emacs. (Tue, 01 Aug 2023 15:46:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tegar Syahputra <dqs7cp2e <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 01 Aug 2023 15:46:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tegar Syahputra <dqs7cp2e <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: package.el: Safer package upgrade
Date: Tue, 1 Aug 2023 19:05:29 +0700
[Message part 1 (text/plain, inline)]
The current `package-upgrade' from package.el delete old package
before installing the new one. This can be problematic if the user
interrupt the process or if there is some network problems.

Since `package-install' allow the same package to be installed if the
argument is of `package-desc' type. We can use this to make package
upgrade atomic by deferring `package-delete'.

Related thread: https://lists.gnu.org/archive/html/emacs-devel/2023-07/msg00887.html

================================

In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38,
 cairo version 1.16.0) of 2023-07-25 built on sid
Repository revision: 906ecf442c43da98e6b8c7488f549691901690e9
Repository branch: emacs-29
Windowing system distributor 'The X.Org Foundation', version 11.0.12101007
System Description: Debian GNU/Linux trixie/sid

Configured using:
 'configure --prefix=/usr/local --program-suffix=29
 --build=amd64-linux-gnu --enable-gtk-deprecation-warnings
 --enable-check-lisp-object-type --with-json --with-x-toolkit=gtk3
 --with-xwidgets --with-x --with-mailutils --with-imagemagick
 --with-native-compilation --with-file-notification=inotify
 --with-tree-sitter'

[package-upgrade--diff.txt (text/plain, attachment)]

This bug report was last modified 1 year and 323 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.