diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-10-09 12:55:46 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-10-23 12:30:17 -0700 |
commit | dee05622a94e2803d232892b376aba70328c21e6 (patch) | |
tree | bc51a8edee0db1a3f0109e40ca760997ac3a45e0 /src/data.lisp | |
parent | 720ee21a0905d36cf29af49ce8b6d572296dddb6 (diff) | |
download | consfigurator-dee05622a94e2803d232892b376aba70328c21e6.tar.gz |
replace some functions with a new :CONSFIGURATOR-CACHE connattr
This simplifies the API.
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/data.lisp')
-rw-r--r-- | src/data.lisp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/data.lisp b/src/data.lisp index d87e648..4962ae0 100644 --- a/src/data.lisp +++ b/src/data.lisp @@ -403,7 +403,8 @@ no risk of clashes between fresly generated files and cached copies of files." (if version pn (ensure-directory-pathname pn))))) (defun remote-data-pathname (&rest args) - (apply #'data-pathname (get-remote-data-cache-dir) args)) + (apply #'data-pathname + (merge-pathnames "data/" (get-connattr :consfigurator-cache)) args)) ;;;; Remote caches @@ -420,13 +421,12 @@ of CONNECTION, where each entry is of the form (mapcar (lambda (line) (mapcar #'filename->string (split-string line :separator "/"))) (multiple-value-bind (out exit) - (mrun :may-fail "find" (get-remote-data-cache-dir) + (mrun :may-fail "find" (merge-pathnames + "data/" + (get-connattr :consfigurator-cache)) "-type" "f" "-printf" "%P\\n") (and (zerop exit) (lines out)))))) -(defun get-remote-data-cache-dir () - (remote-consfigurator-cache-pathname "data/")) - ;;;; Local caches |