diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-02-16 23:36:53 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-02-16 23:36:53 -0700 |
commit | dab7708eec7b734920273d82d81b6d8463abab28 (patch) | |
tree | e544d01660ffd25af0114fd11f81f3b175c2bf7c | |
parent | a241758f5d48d3ebfcd7caaec9ee66a79e020208 (diff) | |
download | consfigurator-dab7708eec7b734920273d82d81b6d8463abab28.tar.gz |
fix a loop, some function calls and a declaration
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rw-r--r-- | src/core.lisp | 15 | ||||
-rw-r--r-- | src/data/asdf.lisp | 3 |
2 files changed, 10 insertions, 8 deletions
diff --git a/src/core.lisp b/src/core.lisp index 89274ee..2f36b0f 100644 --- a/src/core.lisp +++ b/src/core.lisp @@ -303,7 +303,7 @@ an atomic property application." ((symbol-named unapply (car propapp)) (destructuring-bind (psym . args) (compile-propapp (cadr propapp)) (setprop sym (proptype psym) - :desc (concat "Unapply: " (propdesc psym)) + :desc (strcat "Unapply: " (propdesc psym)) :check (complement (get psym 'check)) :apply (get psym 'unapply) :unapply (get psym 'apply)) @@ -621,7 +621,7 @@ Signals a condition MISSING-DATA-SOURCE when unable to access the data source all Lisp processes started up by Consfigurator, since prerequisite data sources are not expected to be available outside of the root Lisp.")) -(defprop data-uploaded (iden1 iden2 &optional destination) +(defprop data-uploaded :posix (iden1 iden2 &optional destination) ;; calls get-data ) @@ -641,9 +641,10 @@ sources are not expected to be available outside of the root Lisp.")) (defun query-data-sources (iden1 iden2) (car (sort (loop for (ver . get) in *data-sources* - when (funcall ver iden1 iden2) - collect (cons it (lambda () - (funcall get iden1 iden2)))) + for version = (funcall ver iden1 iden2) + when version collect (cons version + (lambda () + (funcall get iden1 iden2)))) (compose #'version> #'car)))) ;; called by implementations of ESTABLISH-CONNECTION which start up remote @@ -729,7 +730,7 @@ sources are not expected to be available outside of the root Lisp.")) "/*")))) (defun get-local-data-cache-dir () - (uiop:ensure-pathname-directory + (uiop:ensure-directory-pathname (strcat (or (uiop:getenv "XDG_CACHE_HOME") (strcat (uiop:getenv "HOME") "/.cache")) "/consfigurator/data"))) @@ -746,7 +747,7 @@ process, where each entry is of the form (list dir subdir file)))))) (defun get-remote-data-cache-dir () - (uiop:ensure-pathname-directory + (uiop:ensure-directory-pathname (car (runlines "echo" "${XDG_CACHE_HOME:-$HOME/.cache}/consfigurator/data/")))) diff --git a/src/data/asdf.lisp b/src/data/asdf.lisp index cec3724..98d2e4f 100644 --- a/src/data/asdf.lisp +++ b/src/data/asdf.lisp @@ -10,7 +10,8 @@ (Defun get-path-to-concatenated-system (iden1 system) "Try to concatenate all the source code for SYSTEM, store it somewhere and return the filename." - (let ((cache-dir (uiop:ensure-pathname-directory + (declare (ignore iden1)) + (let ((cache-dir (uiop:ensure-directory-pathname (strcat (or (uiop:getenv "XDG_CACHE_HOME") (strcat (uiop:getenv "HOME") "/.cache")) "/consfigurator/systems"))) |