From fbe55a361f4024464dedddd51715f3b560e702db Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 1 Sep 2021 17:43:58 -0700 Subject: IMAGE-DUMPED: support skipping when same build of SBCL unavailable Signed-off-by: Sean Whitton --- src/property.lisp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/property.lisp') diff --git a/src/property.lisp b/src/property.lisp index 23c1780..cebc084 100644 --- a/src/property.lisp +++ b/src/property.lisp @@ -604,6 +604,12 @@ PATH already has the specified CONTENT and MODE." (defun cksum (file) (parse-integer (car (split-string (run "cksum" file))))) +(defun local-cksum (file) + (parse-integer + (car + (split-string + (run-program `("cksum" ,(unix-namestring file)) :output :string))))) + ;; this is a safe parse of ls(1) output given its POSIX specification (defun ls-cksum (file) (when-let* ((ls (ignore-errors -- cgit v1.2.3