[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/package+vc 22d768a29d 4/9: Run 'package-vc-unpack-1' after updat
From: |
Philip Kaludercic |
Subject: |
feature/package+vc 22d768a29d 4/9: Run 'package-vc-unpack-1' after updating source packages |
Date: |
Wed, 12 Oct 2022 15:31:34 -0400 (EDT) |
branch: feature/package+vc
commit 22d768a29de0d3e768ab259f46e4152780258713
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Run 'package-vc-unpack-1' after updating source packages
* lisp/emacs-lisp/package-vc.el (package-vc-update): Call
'package-vc-unpack-1'.
---
lisp/emacs-lisp/package-vc.el | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index a9aa685402..3a1c89f73e 100644
--- a/lisp/emacs-lisp/package-vc.el
+++ b/lisp/emacs-lisp/package-vc.el
@@ -281,9 +281,18 @@ The output is written out into PKG-FILE."
(defun package-vc-update (pkg-desc)
"Attempt to update the packager PKG-DESC."
- (let ((default-directory (package-desc-dir pkg-desc)))
- (with-demoted-errors "Error during package update: %S"
- (vc-pull))))
+ (let* ((default-directory (package-desc-dir pkg-desc))
+ (ret (with-demoted-errors "Error during package update: %S"
+ (vc-pull)))
+ (buf (cond
+ ((processp ret) (process-buffer ret))
+ ((bufferp ret) ret))))
+ (if buf
+ (with-current-buffer buf
+ (vc-run-delayed
+ (package-vc-unpack-1 pkg-desc default-directory)))
+ (package-vc-unpack-1 pkg-desc default-directory))))
+
;;;###autoload
(defun package-vc-install (name-or-url &optional name rev)
- feature/package+vc updated (8e6e6e6de5 -> 982c0e6c15), Philip Kaludercic, 2022/10/12
- feature/package+vc 0610e6f9f1 5/9: Rename 'package-vc-link-project' to 'package-vc-link-directory', Philip Kaludercic, 2022/10/12
- feature/package+vc 576593a2b2 2/9: Add new command to install a package via symbolic linking, Philip Kaludercic, 2022/10/12
- feature/package+vc 7cdc11ee99 8/9: Document package-vc, Philip Kaludercic, 2022/10/12
- feature/package+vc 73669f73e6 7/9: Allow specifying a package name for 'package-vc-link-directory', Philip Kaludercic, 2022/10/12
- feature/package+vc 22d768a29d 4/9: Run 'package-vc-unpack-1' after updating source packages,
Philip Kaludercic <=
- feature/package+vc 1a5e705dda 3/9: ; * lisp/vc/vc-cvs.el (vc-cvs-clone): Remove function, Philip Kaludercic, 2022/10/12
- feature/package+vc 982c0e6c15 9/9: * etc/NEWS: Mention package-vc additions, Philip Kaludercic, 2022/10/12
- feature/package+vc 4a25205ec1 1/9: Only use 'package-vc-repository-store' if necessary, Philip Kaludercic, 2022/10/12
- feature/package+vc 0e3b67e3a3 6/9: * lisp/emacs-lisp/package-vc.el (package-vc-refresh): Add function., Philip Kaludercic, 2022/10/12