summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/package-vc.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index a3de07e503a..fb0d4524501 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."