mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
ui: Don't make substituter-related RPCs at all when substitutes are disabled.
Reported by Nikita Karetnikov and Cyril Roelandt. * guix/ui.scm (show-what-to-build): Call `substitutable-path-info' only when USE-SUBSTITUTES? is true.
This commit is contained in:
parent
a4572a1720
commit
1a8b783470
1 changed files with 9 additions and 6 deletions
15
guix/ui.scm
15
guix/ui.scm
|
@ -223,12 +223,15 @@ (define* (show-what-to-build store drv
|
|||
drv)
|
||||
(map derivation-input-path build))))
|
||||
((download) ; add the references of DOWNLOAD
|
||||
(delete-duplicates
|
||||
(append download
|
||||
(remove (cut valid-path? store <>)
|
||||
(append-map
|
||||
substitutable-references
|
||||
(substitutable-path-info store download)))))))
|
||||
(if use-substitutes?
|
||||
(delete-duplicates
|
||||
(append download
|
||||
(remove (cut valid-path? store <>)
|
||||
(append-map
|
||||
substitutable-references
|
||||
(substitutable-path-info store
|
||||
download)))))
|
||||
download)))
|
||||
(if dry-run?
|
||||
(begin
|
||||
(format (current-error-port)
|
||||
|
|
Loading…
Reference in a new issue