Skip to content
Snippets Groups Projects
Commit 712cebc4 authored by Gary King's avatar Gary King
Browse files

A patch from Richard Kreuter that allows pathname defaulting to work

better with *load-truename* and *default-pathname-defaults*; this makes
it easier to work with defsystems in the REPL.
parent 214a2f29
No related branches found
No related tags found
No related merge requests found
;;; This is asdf: Another System Definition Facility. $Revision: 1.104 $ ;;; This is asdf: Another System Definition Facility. $Revision: 1.105 $
;;; ;;;
;;; Feedback, bug reports, and patches are all welcome: please mail to ;;; Feedback, bug reports, and patches are all welcome: please mail to
;;; <cclan-list@lists.sf.net>. But note first that the canonical ;;; <cclan-list@lists.sf.net>. But note first that the canonical
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
(in-package #:asdf) (in-package #:asdf)
(defvar *asdf-revision* (let* ((v "$Revision: 1.104 $") (defvar *asdf-revision* (let* ((v "$Revision: 1.105 $")
(colon (or (position #\: v) -1)) (colon (or (position #\: v) -1))
(dot (position #\. v))) (dot (position #\. v)))
(and v colon dot (and v colon dot
...@@ -957,8 +957,9 @@ system.")) ...@@ -957,8 +957,9 @@ system."))
:module (coerce-name ',name) :module (coerce-name ',name)
:pathname :pathname
(or ,pathname (or ,pathname
(pathname-sans-name+type (when *load-truename*
(resolve-symlinks *load-truename*)) (pathname-sans-name+type
(resolve-symlinks *load-truename*)))
*default-pathname-defaults*) *default-pathname-defaults*)
',component-options)))))) ',component-options))))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment