From: Stefan Monnier Date: Thu, 4 Apr 2013 02:46:38 +0000 (-0400) Subject: * lisp/emacs-lisp/package.el (package-compute-transaction): Fix ordering X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2026^2~526^2~8 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b208ebc6e75d2dd78fa8b3d5dc6548215b0d3ef4;p=emacs.git * lisp/emacs-lisp/package.el (package-compute-transaction): Fix ordering when a package is required several times. Fixes: debbugs:14082 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1e50cce354d..1f033f175c5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-04-04 Stefan Monnier + + * emacs-lisp/package.el (package-compute-transaction): Fix ordering + when a package is required several times (bug#14082). + 2013-04-04 Roland Winkler * faces.el (read-face-name): Behave as promised by the docstring. diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index f9a2881a45c..d005c200d0c 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -811,7 +811,10 @@ but version %s required" (package-version-join (package-desc-vers (cdr pkg-desc))))) ;; Only add to the transaction if we don't already have it. (unless (memq next-pkg package-list) - (push next-pkg package-list)) + (setq package-list + ;; Move to front, so it gets installed early enough + ;; (bug#14082). + (cons next-pkg (delq next-pkg package-list)))) (setq package-list (package-compute-transaction package-list (package-desc-reqs