diff options
author | zimoun <zimon.toutoune@gmail.com> | 2022-05-30 15:07:14 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-06-04 12:04:23 +0200 |
commit | 104b4e25ab7da5697f2f6f1ddfdd4955f05afece (patch) | |
tree | 108b8d74c15c383ca4d26c04b09e13568971012f /tests/guix-daemon.sh | |
parent | c332f1f4fbe8c743a2ca3c5c6fcec042e98a503e (diff) | |
download | guix-104b4e25ab7da5697f2f6f1ddfdd4955f05afece.tar.gz |
cache: Catch invalid 'last-expiry-cleanup'.
Fixes <http://issues.guix.gnu.org/55638>. * guix/cache.scm (maybe-remove-expired-cache-entries)[last-expiry-date]: Use 'get-string-all' + 'string->number' instead of 'read'; ignore invalid numbers. * tests/cache.scm ("maybe-remove-expired-cache-entries, empty cache") ("maybe-remove-expired-cache-entries, corrupted cache"): New tests. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'tests/guix-daemon.sh')
0 files changed, 0 insertions, 0 deletions