diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-09-01 17:43:58 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-10-28 11:59:17 -0700 |
commit | fbe55a361f4024464dedddd51715f3b560e702db (patch) | |
tree | f5d2b48c8eebf9f97a127c0d723a82092a56bbe4 /src/property.lisp | |
parent | a261ee6e314a041a63f1770a43050c049f837f56 (diff) | |
download | consfigurator-fbe55a361f4024464dedddd51715f3b560e702db.tar.gz |
IMAGE-DUMPED: support skipping when same build of SBCL unavailable
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/property.lisp')
-rw-r--r-- | src/property.lisp | 6 |
1 files changed, 6 insertions, 0 deletions
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 |