Skip to content

Commit

Permalink
Fix resolve-file to work if the cache is created at the different dev…
Browse files Browse the repository at this point in the history
…ice from the original file's one.
  • Loading branch information
fukamachi committed Sep 14, 2019
1 parent 8e2cc58 commit feb1daf
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions core/suite/file.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,15 @@
(if (eql (search (namestring asdf:*user-cache*)
(namestring pathname))
0)
(make-pathname
:type "lisp"
:defaults pathname
:directory (cons :absolute
(nthcdr (+ (length (pathname-directory asdf:*user-cache*))
;; Omit also pathname-device
(if (pathname-device pathname)
1
0))
(pathname-directory pathname))))
(let* ((directories (nthcdr (length (pathname-directory asdf:*user-cache*))
(pathname-directory pathname)))
(device (when (pathname-device pathname)
(pop directories))))
(make-pathname
:type "lisp"
:defaults pathname
:device device
:directory (cons :absolute directories)))
(uiop:lispize-pathname pathname)))))

(defun system-component-p (system-name component-name)
Expand Down

0 comments on commit feb1daf

Please sign in to comment.