From 12c74be550c22d7d7ea57d3fa6645af1d2a9ad6c Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 27 Mar 2021 12:36:14 -0700 Subject: use PATHNAME-FILE instead of PATHNAME-NAME Signed-off-by: Sean Whitton --- src/data.lisp | 4 ++-- src/package.lisp | 2 ++ src/util.lisp | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/data.lisp b/src/data.lisp index 5863784..91e6738 100644 --- a/src/data.lisp +++ b/src/data.lisp @@ -251,7 +251,7 @@ This is not allowed for security reasons.")) (let* ((*connection* connection) (dest (remote-data-pathname iden1 iden2 data-version)) (destdir (pathname-directory-pathname dest)) - (destfile (pathname-name dest))) + (destfile (pathname-file dest))) (mrun "mkdir" "-p" destdir) (with-remote-current-directory (destdir) (etypecase data @@ -373,7 +373,7 @@ process, where each entry is of the form (pathname-directory dir)) (lastcar (pathname-directory subdir)) - (pathname-name file))))))) + (pathname-file file))))))) (defun get-highest-local-cached-prerequisite-data (iden1 iden2) "Get the highest version of prerequisite data identified by IDEN1 and IDEN2 diff --git a/src/package.lisp b/src/package.lisp index f26de23..6c3a167 100644 --- a/src/package.lisp +++ b/src/package.lisp @@ -20,6 +20,7 @@ #:with-temporary-file #:ensure-directory-pathname #:ensure-pathname + #:enough-pathname #:getenv #:subdirectories #:directory-files @@ -44,6 +45,7 @@ #:with-temporary-file #:ensure-directory-pathname #:ensure-pathname + #:enough-pathname #:getenv #:subdirectories #:directory-files diff --git a/src/util.lisp b/src/util.lisp index 4df14a6..ab41664 100644 --- a/src/util.lisp +++ b/src/util.lisp @@ -142,6 +142,11 @@ one solution is to convert your property to a :LISP property." (unwind-protect (progn ,@forms) (delete-directory-tree ,dir :validate t)))) +(defun pathname-file (pathname) + "Like PATHNAME-NAME but include any file extension." + (namestring + (enough-pathname pathname (pathname-directory-pathname pathname)))) + ;;;; Progress & debug printing -- cgit v1.2.3