mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 14:16:55 -05:00
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.
This commit is contained in:
parent
dc2e4b0e16
commit
0f5378ebc4
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue