Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

package-install: Don't do a complete `package-initialize'.

There isn't a reason why a full initialization needs to be run after installing
each individual package. This also avoids problems with archive setup, since
initialization reads the archive contents, but simple activation does not.

Signed-off-by: Dan Hackney <>
  • Loading branch information...
commit b69b25e676bcb8a559ee86985151e3856e8ac78e 1 parent ecee915
@haxney authored
Showing with 11 additions and 2 deletions.
  1. +10 −0 package-test.el
  2. +1 −2  package.el
10 package-test.el
@@ -738,6 +738,16 @@
(package-install (make-package :name 'not-found))
(error err)))
+ (expect (package 'activated)
+ (setup-test 'test-dir 'tarty)
+ (package-download tarty)
+ (package-install tarty)
+ (package-status tarty))
+ (expect (package 'activated)
+ (setup-test 'test-dir 'tarty)
+ (package-download tarty)
+ (package-install tarty)
+ (package-status (car (package-find 'tarty))))
(desc "package-menu-column-offset")
(expect 0
3  package.el
@@ -1088,8 +1088,7 @@ Interactively, prompts for the package name."
(package-compute-transaction (list pkg)
(package-requires-hard pkg))))
(package-download-transaction transaction)))
- ;; Try to activate it.
- (package-initialize))
+ (package-activate pkg))
(defun package-from-single-buffer (buf)
"Create a package structure from BUF.
Please sign in to comment.
Something went wrong with that request. Please try again.