* lisp/emacs-lisp/package.el: Always update selected-packages
commit7ac84a2570e1268cc040fcd529508307b2b22c01
authorArtur Malabarba <bruce.connor.am@gmail.com>
Sat, 23 May 2015 09:13:02 +0000 (23 10:13 +0100)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Sat, 23 May 2015 09:21:27 +0000 (23 10:21 +0100)
tree79bbe53a991007036ce9bcf897a4ce1371f516ea
parent1f83c3e52480d35b0970d5db95e565f31686d227
* lisp/emacs-lisp/package.el: Always update selected-packages

(package--update-selected-packages): New function.
(package-menu-execute): Use it before starting the transaction,
this way the list of selected packages is updated even when the
transaction fails.
(package-menu--perform-transaction): Don't edit selected-packages.
lisp/emacs-lisp/package.el