guix/guix
Christopher Baines 112692c0d5
guix: Split (guix substitutes) from (guix scripts substitute).
This means there's a module for working with substitutes, rather than all the
code sitting in the script. The need for this can be seen with the weather and
challenge scripts, that now don't have to use code from the substitute script,
but can instead use the substitute module.

The separation here between the actual functionality of the substitute script
and the underlying functionality used both there and elsewhere should make
maintenance easier moving forward.

This commit just moves code, none of the code should have been changed
significantly.

* guix/scripts/substitute.scm (%narinfo-cache-directory, %narinfo-ttl,
%narinfo-negative-ttl, %narinfo-transient-error-ttl, %unreachable-hosts): Move
variables to guix/substitutes.scm.
(narinfo-cache-file, cached-narinfo, cache-narinfo!, narinfo-request,
read-to-eof, call-with-connection-error-handling, fetch-narinfos,
lookup-narinfos, lookup-narinfos/diverse): Move procedures to
guix/substitutes.scm.
* guix/substitutes.scm: New file.
* Makefile.am: Add it.
* guix/narinfo.scm: Remove redundant module.
* guix/scripts/challenge.scm: Change (guix scripts substitute) to (guix
substitutes).
* guix/scripts/weather.scm: Change (guix scripts substitute) to (guix
substitutes).
2021-03-05 21:06:03 +00:00
..
build syscalls: Add 'mounts' and the <mount> record type. 2021-02-25 11:29:35 +01:00
build-system build-system: Add renpy-build-system. 2021-02-07 15:17:55 +01:00
import import/cran: Fix detection of Fortran files. 2021-03-01 22:40:41 +01:00
scripts guix: Split (guix substitutes) from (guix scripts substitute). 2021-03-05 21:06:03 +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
base16.scm
base32.scm
base64.scm
build-system.scm
bzr-download.scm
cache.scm
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
deprecation.scm
derivations.scm
describe.scm describe: Make sure package-channels always returns a list. 2021-02-25 10:24:11 +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: 'url-fetch/tarbomb' and 'url-fetch/zipbomb' refer to native tools. 2021-03-05 12:49:28 +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 gexp: Honor #:target in 'compiled-modules'. 2021-03-05 12:49:28 +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
glob.scm
gnu-maintenance.scm gnu-maintenance: Fix error handling. 2021-01-31 21:49:58 +01:00
gnupg.scm
grafts.scm grafts: Inline 'grafting?' and 'set-grafting'. 2021-02-23 15:24:47 +01:00
graph.js
graph.scm
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
man-db.scm
memoization.scm
modules.scm
monad-repl.scm
monads.scm
nar.scm
narinfo.scm guix: Split (guix substitutes) from (guix scripts substitute). 2021-03-05 21:06:03 +00:00
openpgp.scm openpgp: Remove now unnecessary procedure. 2021-03-02 23:12:37 +01:00
packages.scm packages: Improve the docstring of PACKAGE/INHERIT. 2021-02-23 14:12:34 -05:00
pki.scm
profiles.scm profiles: 'package->manifest-entry' preserves transformations by default. 2021-03-05 12:49:27 +01:00
profiling.scm
progress.scm
quirks.scm
records.scm
remote.scm
repl.scm
scripts.scm guix: scripts: Fix corner cases of hint for option typo. 2021-02-24 23:50:13 +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 serialization: Micro-optimize string literal output in 'write-file-tree'. 2021-03-01 17:45:51 +01:00
sets.scm
ssh.scm
status.scm
store.scm store: Micro-optimize object cache lookup. 2021-02-23 15:24:49 +01:00
substitutes.scm guix: Split (guix substitutes) from (guix scripts substitute). 2021-03-05 21:06:03 +00:00
svn-download.scm
swh.scm
tests.scm tests: Refer to '%derivation-cache' in the right module. 2021-03-05 12:49:28 +01:00
transformations.scm
ui.scm ui: Bug-report URL in '--help' can be translated. 2021-02-24 23:44:10 +01:00
upstream.scm
utils.scm utils: Add string distance. 2021-02-03 12:41:28 +01:00
workers.scm