Skip to content

Commit 22c8f0b

Browse files
committed
When using CLEAN, compare pathnames by namestring.
This avoids an issue on (at least) LispWorks, where two equal-looking pathnames are not EQUAL due to differing invisible values of :name and :type. Fixes github issue #131.
1 parent 8ce78a6 commit 22c8f0b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: quicklisp/dist.lisp

+6-1
Original file line numberDiff line numberDiff line change
@@ -1109,8 +1109,13 @@ FUN."
11091109
(set-difference present-archives known-archives
11101110
:test 'equalp))
11111111
(garbage-directories
1112+
;; Use the namestring here on the theory that pathnames with
1113+
;; equalp namestrings are sufficiently the same. On
1114+
;; LispWorks, for example, identical namestrings can still
1115+
;; differ in :name, :type, and more.
11121116
(set-difference present-directories known-directories
1113-
:test 'equalp)))
1117+
:test 'equalp
1118+
:key 'namestring)))
11141119
(map nil 'delete-file garbage-archives)
11151120
(map nil 'delete-directory-tree garbage-directories)))
11161121

0 commit comments

Comments
 (0)