From dee05622a94e2803d232892b376aba70328c21e6 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 9 Oct 2021 12:55:46 -0700 Subject: replace some functions with a new :CONSFIGURATOR-CACHE connattr This simplifies the API. Signed-off-by: Sean Whitton --- src/connection.lisp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/connection.lisp') diff --git a/src/connection.lisp b/src/connection.lisp index b7a5cb6..370d146 100644 --- a/src/connection.lisp +++ b/src/connection.lisp @@ -252,6 +252,11 @@ login(1)). Tilde expansion works correctly." (merge-pathnames ".cache/" (connection-connattr connection :remote-home))))) +(defmethod connection-connattr + ((connection connection) (k (eql :consfigurator-cache))) + (merge-pathnames "consfigurator/" + (connection-connattr connection :XDG-CACHE-HOME))) + ;;;; Functions to access the slots of the current connection @@ -603,10 +608,6 @@ specification of POSIX ls(1))." 0)) (failed-change "Could not determine time of remote's last reboot.")))) -(defun remote-consfigurator-cache-pathname (path) - (merge-pathnames - path (merge-pathnames "consfigurator/" (get-connattr :XDG-CACHE-HOME)))) - (defun remote-executable-find (executable) (zerop (mrun :for-exit "command" "-v" executable))) -- cgit v1.2.3