895d1eda54
This ensures that switching between different substitute servers doesn't lead to a polluted narinfo cache. * guix/scripts/substitute.scm (narinfo-cache-file): Add 'cache-url' parameter. Add the base32 of CACHE-URL as a sub-directory under %NARINFO-CACHE-DIRECTORY. Update callers. (cached-narinfo): Likewise. Call 'mkdir-p' on the dirname of the cache file. Update callers. (remove-expired-cached-narinfos): Add 'directory' parameter and use it instead of %NARINFO-CACHE-DIRECTORY. (narinfo-cache-directories): New procedure. (maybe-remove-expired-cached-narinfo): Call 'remove-expired-cached-narinfos' for each item returned by 'narinfo-cache-directories'. |
||
---|---|---|
.. | ||
build | ||
build-system | ||
import | ||
scripts | ||
base32.scm | ||
base64.scm | ||
build-system.scm | ||
config.scm.in | ||
cpio.scm | ||
cvs-download.scm | ||
derivations.scm | ||
download.scm | ||
elf.scm | ||
ftp-client.scm | ||
gcrypt.scm | ||
gexp.scm | ||
git-download.scm | ||
gnu-maintenance.scm | ||
gnupg.scm | ||
hash.scm | ||
http-client.scm | ||
licenses.scm | ||
monad-repl.scm | ||
monads.scm | ||
nar.scm | ||
packages.scm | ||
pk-crypto.scm | ||
pki.scm | ||
profiles.scm | ||
records.scm | ||
search-paths.scm | ||
serialization.scm | ||
sets.scm | ||
store.scm | ||
svn-download.scm | ||
tests.scm | ||
ui.scm | ||
utils.scm |