guix/guix
Ludovic Courtès 895d1eda54 substitute: Store cached narinfo in cache-specific sub-directories.
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'.
2015-07-13 18:29:01 +02:00
..
build build: Add 'emacs-build-system'. 2015-07-08 10:53:05 +02:00
build-system build: Add 'emacs-build-system'. 2015-07-08 10:53:05 +02:00
import import: cabal: Make token recognition case-insensitive. 2015-07-08 10:53:05 +02:00
scripts substitute: Store cached narinfo in cache-specific sub-directories. 2015-07-13 18:29:01 +02:00
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