guix/guix
Christopher Baines 187e970968
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.
2021-02-22 20:43:12 +00:00
..
build build-system: Add renpy-build-system. 2021-02-07 15:17:55 +01:00
build-system build-system: Add renpy-build-system. 2021-02-07 15:17:55 +01:00
import import: crate: Use repository when home-page is unavailable 2021-02-12 22:47:09 +01:00
scripts substitute: Remove fetch-narinfos use open-connection-for-uri/maybe. 2021-02-22 20:43:12 +00:00
store database: Validate #:nar-size and #:time when registering store items. 2021-01-31 21:49:58 +01:00
tests
android-repo-download.scm
avahi.scm avahi: Remove poll timeout when possible. 2020-12-20 10:40:57 +01:00
base16.scm
base32.scm
base64.scm
build-system.scm
bzr-download.scm
cache.scm git: Periodically delete least-recently-used cached checkouts. 2021-01-13 16:26:58 +01:00
channels.scm channels: Consider the current channel commit as authentic. 2021-02-04 09:23:39 +01:00
ci.scm ci: Add missing imports. 2021-01-31 21:49:58 +01:00
colors.scm
combinators.scm
config.scm.in build: Add '--with-channel-commit' and related configure flags. 2021-02-04 09:23:39 +01:00
cpio.scm
cve.scm
cvs-download.scm
d3.v3.js graph: Install JavaScript files. 2021-01-04 23:54:16 +01:00
deprecation.scm
derivations.scm
describe.scm channels: Record 'guix' channel metadata in (guix config). 2021-02-04 09:23:39 +01:00
diagnostics.scm
discovery.scm
docker.scm docker: Pass '--hard-dereference' to 'tar' to ensure reproducible builds. 2021-02-08 23:50:35 +01:00
download.scm download: Update ImageMagick mirror list. 2020-12-13 01:05:57 +01:00
elf.scm
ftp-client.scm ftp-client: Before 'PASV', try 'EPSV' first for IPv6. 2021-02-15 08:38:00 +08:00
gexp.scm maint: Require Guile >= 2.2.6. 2020-12-19 23:25:01 +01:00
git-authenticate.scm channels: Consider the current channel commit as authentic. 2021-02-04 09:23:39 +01:00
git-download.scm
git.scm git: Periodically delete least-recently-used cached checkouts. 2021-01-13 16:26:58 +01:00
glob.scm guix: Add globstar support. 2020-12-09 22:25:17 +01:00
gnu-maintenance.scm gnu-maintenance: Fix error handling. 2021-01-31 21:49:58 +01:00
gnupg.scm
grafts.scm
graph.js graph: Install JavaScript files. 2021-01-04 23:54:16 +01:00
graph.scm graph: Install JavaScript files. 2021-01-04 23:54:16 +01:00
hg-download.scm
http-client.scm http-client: Accept #:open-connection in http-fetch. 2021-02-22 20:43:10 +00:00
i18n.scm
inferior.scm inferior: Speed up 'cached-channel-instance' for cache hits. 2021-01-29 12:09:11 +01:00
licenses.scm guix: Add Open Software License 2.1. 2021-01-28 15:07:55 +01:00
lint.scm upstream: Make the 'updaters' parameter optional. 2021-01-07 12:08:41 +01:00
man-db.scm
memoization.scm
modules.scm modules: Recognize #:re-export-and-replace. 2021-01-19 17:45:38 +01:00
monad-repl.scm
monads.scm maint: Require Guile >= 2.2.6. 2020-12-19 23:25:01 +01:00
nar.scm database: Remove #:deduplicate? from 'register-items'. 2020-12-15 17:32:11 +01:00
narinfo.scm guix: narinfo: Export narinfo-contents. 2021-02-02 19:29:52 +00:00
openpgp.scm
packages.scm packages: 'package-field-location' handles 'search-path' returning #f. 2021-02-22 12:07:45 +01:00
pki.scm
profiles.scm profiles: Add 'manifest->code'. 2021-02-01 17:32:31 +01:00
profiling.scm
progress.scm status: Do not emit ANSI escapes when stderr is not a tty. 2020-12-18 16:13:39 +01:00
quirks.scm
records.scm
remote.scm
repl.scm repl: Fix exception handling for interpreted code. 2021-01-21 00:14:38 +01:00
scripts.scm guix: scripts: Add hint for option typo. 2021-02-03 12:41:28 +01:00
search-paths.scm
self.scm channels: Record 'guix' channel metadata in (guix config). 2021-02-04 09:23:39 +01:00
serialization.scm store: Add 'find-roots' RPC. 2021-01-22 08:36:03 +01:00
sets.scm
ssh.scm ssh: Use 'guix repl' instead of 'guile'. 2020-12-23 16:03:32 +01:00
status.scm status: Do not emit ANSI escapes when stderr is not a tty. 2020-12-18 16:13:39 +01:00
store.scm store: 'store-path-hash-part' really returns false for invalid file names. 2021-02-04 09:23:38 +01:00
svn-download.scm
swh.scm import, swh: Adjust to Guile-JSON 4.5.x unspecified value handling. 2021-01-21 00:14:38 +01:00
tests.scm
transformations.scm transformations: Add '--with-latest'. 2021-01-19 17:45:39 +01:00
ui.scm ui: Fix typo in description. 2021-02-19 13:35:01 +01:00
upstream.scm transformations: Add '--with-latest'. 2021-01-19 17:45:39 +01:00
utils.scm utils: Add string distance. 2021-02-03 12:41:28 +01:00
workers.scm