diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-11-21 20:36:20 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-11-22 12:17:42 +0100 |
commit | 4f5234be0378368e6af25925db46612838d25e58 (patch) | |
tree | fadd4b69c92439445e9c9cd22136c14ee3c7423d /nix | |
parent | 4e2e84d85687e02725d156b40bdfd6b20dca0eed (diff) | |
download | guix-4f5234be0378368e6af25925db46612838d25e58.tar guix-4f5234be0378368e6af25925db46612838d25e58.tar.gz |
substitute: Don't fetch /nix-cache-info.
This avoids one GET request every time 'fetch-narinfos' is called.
The file itself was essentially useless.
* guix/scripts/substitute.scm (<cache-info>, download-cache-info):
Remove.
(%unreachable-hosts): New variable.
(open-connection-for-uri/maybe): New procedure.
(fetch-narinfos)[handle-narinfo-response]: Check whether NARINFO has its
'path' under (%store-prefix) and ignore it otherwise. Move
'update-progress!' call before 'if'.
[do-fetch]: Remove 'port' parameter. Use
'open-connection-for-uri/maybe'.
Remove call to 'download-cache-info'.
Diffstat (limited to 'nix')
0 files changed, 0 insertions, 0 deletions