guix-devel/guix/scripts
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
..
import import: Add 'elpa' importer. 2015-07-08 10:53:05 +02:00
archive.scm Move 'specification->package+output' to (gnu packages). 2015-06-18 00:25:48 +02:00
authenticate.scm Remove assorted Guile 2.0.5 workarounds. 2015-05-10 11:07:51 +02:00
build.scm guix build: Allow directories to be passed to --with-source. 2015-06-11 11:19:12 +02:00
download.scm Use `port-sha256' and `open-sha256-port'. 2013-07-03 01:18:24 +02:00
edit.scm Add 'guix edit'. 2015-06-18 00:25:49 +02:00
environment.scm scripts: environment: Return the exit status of the command. 2015-07-02 21:47:24 +02:00
gc.scm guix gc: Add '--verify'. 2015-06-06 19:05:56 +02:00
hash.scm Break module cycle involving (guix store) and (guix ui). 2014-10-09 23:51:19 +02:00
import.scm import: Add 'elpa' importer. 2015-07-08 10:53:05 +02:00
lint.scm guix lint: Remove duplicated module lines. 2015-07-13 10:20:34 +03:00
offload.scm offload: Add 'ssh-options' field to <build-machine>. 2015-07-09 11:59:26 +02:00
package.scm Move 'specification->package+output' to (gnu packages). 2015-06-18 00:25:48 +02:00
publish.scm publish: Add '--listen'. 2015-05-12 21:22:52 +02:00
pull.scm pull: Always install the ~/.config/guix/latest symlink. 2015-02-06 17:39:10 +01:00
refresh.scm refresh: Allow users to refer to specific package versions. 2015-04-16 23:15:06 +02:00
size.scm size: Add '--map-file' option. 2015-06-21 23:39:12 +02:00
substitute.scm substitute: Store cached narinfo in cache-specific sub-directories. 2015-07-13 18:29:01 +02:00
system.scm gnu: system: Move <file-system-mapping> into (gnu system file-systems). 2015-07-07 21:20:59 -04:00