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
..
2015-06-24 18:05:03 +02:00
2015-05-19 16:09:58 +02:00
2014-02-21 23:49:52 +01:00
2015-04-13 00:02:59 +02:00
2015-06-24 18:05:03 +02:00
2014-03-31 23:34:20 +02:00
2015-04-04 14:16:43 -04:00
2015-06-24 22:47:59 +02:00
2015-01-11 23:50:01 +01:00
2015-06-18 00:36:09 +02:00
2014-09-29 19:30:28 -04:00