emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/package+vc 820036dafe 2/2: * package-vc.el (package-vc-unpack):


From: Philip Kaludercic
Subject: feature/package+vc 820036dafe 2/2: * package-vc.el (package-vc-unpack): Mark packages as selected
Date: Fri, 19 Aug 2022 14:37:23 -0400 (EDT)

branch: feature/package+vc
commit 820036dafe642f3319312c38ef442168aff17e84
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    * package-vc.el (package-vc-unpack): Mark packages as selected
---
 lisp/emacs-lisp/package-vc.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index a3de07e503..fb0d452450 100644
--- a/lisp/emacs-lisp/package-vc.el
+++ b/lisp/emacs-lisp/package-vc.el
@@ -206,7 +206,11 @@ The output is written out into PKG-FILE."
         (when (length= texi-files 1)
           (call-process "install-info" nil nil nil
                         (concat "--dir=" dir-file)
-                        (car texi-files)))))))
+                        (car texi-files)))))
+
+    ;; Mark package as selected
+    (package--save-selected-packages
+     (cons name package-selected-packages))))
 
 (defun package-vc-sourced-packages-list ()
   "Generate a list of packages with VC data."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]