Skip to content

Commit d08a412

Browse files
No need to call package-initialize which is costly
Reuse already defined vars which should be enough.
1 parent 230b536 commit d08a412

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

async-package.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ Argument ERROR-FILE is the file where errors are logged, if some."
6767
`(lambda ()
6868
(require 'bytecomp)
6969
(setq package-archives ',package-archives
70-
package-pinned-packages ',package-pinned-packages)
71-
(package-initialize)
70+
package-pinned-packages ',package-pinned-packages
71+
package-archive-contents ',package-archive-contents
72+
package-alist ',package-alist
73+
load-path ',load-path)
7274
(prog1
7375
(condition-case err
7476
(mapc ',fn ',packages)

0 commit comments

Comments
 (0)