Commit af416cdb authored by Francois-Rene Rideau's avatar Francois-Rene Rideau
Browse files

2.115: Add "debian" to the standard exclusion list.

That's conventionally where debian builds packages by default, we don't want that.
Factor translate-pathname* out of apply-output-translations.
parent 8659059b
......@@ -70,7 +70,7 @@
(eval-when (:load-toplevel :compile-toplevel :execute)
(let* ((asdf-version ;; the 1+ helps the version bumping script discriminate
(subseq "VERSION:2.114" (1+ (length "VERSION"))))
(subseq "VERSION:2.115" (1+ (length "VERSION"))))
(existing-asdf (find-package :asdf))
(vername '#:*asdf-version*)
(versym (and existing-asdf
......@@ -2922,6 +2922,22 @@ effectively disabling the output translation facility."
(defun* translate-pathname* (path absolute-source destination &optional root source)
(declare (ignore source))
((functionp destination)
(funcall destination path absolute-source))
((eq destination t)
((not (pathnamep destination))
(error "invalid destination"))
((not (absolute-pathname-p destination))
(translate-pathname path absolute-source (merge-pathnames* destination root)))
(translate-pathname (directorize-pathname-host-device path) absolute-source destination))
(translate-pathname path absolute-source destination))))
(defun* apply-output-translations (path)
(etypecase path
......@@ -2939,20 +2955,7 @@ effectively disabling the output translation facility."
(root (merge-pathnames* source root))
(t source))
:when (or (eq source t) (pathname-match-p p absolute-source))
((functionp destination)
(funcall destination p absolute-source))
((eq destination t)
((not (pathnamep destination))
(error "invalid destination"))
((not (absolute-pathname-p destination))
(translate-pathname p absolute-source (merge-pathnames* destination root)))
(translate-pathname (directorize-pathname-host-device p) absolute-source destination))
(translate-pathname p absolute-source destination)))
:return (translate-pathname* p absolute-source destination root source)
:finally (return p)))))
(defmethod output-files :around (operation component)
......@@ -3134,7 +3137,8 @@ effectively disabling the output translation facility."
(defvar *default-source-registry-exclusions*
'(".bzr" ".cdv" "~.dep" "" "~.nib" "~.plst"
".git" ".hg" ".pc" ".svn" "CVS" "RCS" "SCCS" "_darcs"
"_sgbak" "autom4te.cache" "cover_db" "_build"))
"_sgbak" "autom4te.cache" "cover_db" "_build"
"debian")) ;; debian often build stuff under the debian directory... BAD.
(defvar *source-registry-exclusions* *default-source-registry-exclusions*)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment