Browse Source

guix-package: Reduce start-up time for queries.

* guix-package.in (guix-package): Call `open-connection' and
  `package-derivation' only after `process-query' has returned.
version-0.8.3
Ludovic Courtès 10 years ago
parent
commit
0f5378ebc4
  1. 6
      guix-package.in

6
guix-package.in

@ -604,9 +604,9 @@ Install, remove, or upgrade PACKAGES in a single transaction.\n"))
(setvbuf (current-error-port) _IOLBF)
(let ((opts (parse-options)))
(parameterize ((%store (open-connection)))
(with-error-handling
(or (process-query opts)
(or (process-query opts)
(parameterize ((%store (open-connection)))
(with-error-handling
(parameterize ((%guile-for-build
(package-derivation (%store)
(if (assoc-ref opts 'bootstrap?)

Loading…
Cancel
Save