diff options
author | Christopher Baines <mail@cbaines.net> | 2021-01-07 21:00:23 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2021-02-22 19:53:46 +0000 |
commit | 8f2d69ccb2f95fa0caa78f0bbf4cfe3777f4357a (patch) | |
tree | 3cc0462ccd815ced191e2b3fb6741ef53dfeea1d /tests/cpan.scm | |
parent | 11e81009a8a9ee9c15ed8cc26cba341e00d7e310 (diff) | |
download | guix-8f2d69ccb2f95fa0caa78f0bbf4cfe3777f4357a.tar guix-8f2d69ccb2f95fa0caa78f0bbf4cfe3777f4357a.tar.gz |
substitute: Remove fetch-narinfos use open-connection-for-uri/maybe.
At least by default. Instead, make the open-connection procedure a parameter,
and make the default guix:open-connection-for-uri. Do so similarly for
lookup-narinfos and lookup-narinfos/diverse which work towards calling
fetch-narinfos.
This means this code can be moved to a different module, without having
use/move the connection caching code.
* guix/scripts/substitute.scm (fetch-narinfos): Add #:open-connection
argument, and call http-multiple-get with it.
(lookup-narinfos) Add #:open-connection argument, and call fetch-narinfos with
it.
(lookup-narinfos/diverse): Add #:open-connection argument, and call
lookup-narinfos with it.
(process-query): Call lookup-narinfos/diverse with #:open-connection
open-connection-for-uri/maybe.
Diffstat (limited to 'tests/cpan.scm')
0 files changed, 0 insertions, 0 deletions