diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-04-18 22:07:49 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-04-18 23:19:30 +0200 |
commit | 2ea2aac6e9d58a07c029504f94fb5015cd407e31 (patch) | |
tree | 28bb3ebe5f80fdcf84ca9464857c6f39754aaa2f /Makefile.am | |
parent | 00753f7038234a0f5a79be3ec9ab949840a18743 (diff) | |
download | guix-2ea2aac6e9d58a07c029504f94fb5015cd407e31.tar.gz guix-2ea2aac6e9d58a07c029504f94fb5015cd407e31.zip |
Add (guix cache) and use it in (guix scripts substitute).
* guix/cache.scm, tests/cache.scm: New files.
* Makefile.am (MODULES, SCM_TESTS): Add them.
* guix/scripts/substitute.scm (obsolete?): Remove.
(remove-expired-cached-narinfos): Rename to...
(cached-narinfo-expiration-time): ... this. Remove the removal part and
only keep the expiration time part.
(narinfo-cache-directories): Add optional 'directory' parameter and
honor it.
(maybe-remove-expired-cached-narinfo): Remove.
(cached-narinfo-files): New procedure.
(guix-substitute): Use 'maybe-remove-expired-cache-entries' instead of
'maybe-remove-expired-cached-narinfo'.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 46f9547117..a997ed8b99 100644 --- a/Makefile.am +++ b/Makefile.am @@ -60,6 +60,7 @@ MODULES = \ guix/upstream.scm \ guix/licenses.scm \ guix/graph.scm \ + guix/cache.scm \ guix/cve.scm \ guix/workers.scm \ guix/zlib.scm \ @@ -296,6 +297,7 @@ SCM_TESTS = \ tests/size.scm \ tests/graph.scm \ tests/challenge.scm \ + tests/cache.scm \ tests/cve.scm \ tests/workers.scm \ tests/zlib.scm \ |