Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Eric Timmons
asdf
Commits
7647ca49
Commit
7647ca49
authored
Mar 07, 2016
by
Robert Goldman
Browse files
Add loop check to search for ASD files.
parent
68b332cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
source-registry.lisp
View file @
7647ca49
...
...
@@ -79,15 +79,22 @@ after having found a .asd file? True by default.")
(
defun
collect-sub*directories-asd-files
(
directory
&key
(
exclude
*default-source-registry-exclusions*
)
collect
(
recurse-beyond-asds
*recurse-beyond-asds*
)
ignore-cache
)
(
collect-sub*directories
directory
#'
(
lambda
(
dir
)
(
unless
(
and
(
not
ignore-cache
)
(
process-source-registry-cache
directory
collect
))
(
let
((
asds
(
collect-asds-in-directory
dir
collect
)))
(
or
recurse-beyond-asds
(
not
asds
)))))
#'
(
lambda
(
x
)
(
not
(
member
(
car
(
last
(
pathname-directory
x
)))
exclude
:test
#'
equal
)))
(
constantly
nil
)))
(
let
((
visited
(
make-hash-table
:test
'equalp
)))
(
collect-sub*directories
directory
#'
(
lambda
(
dir
)
(
unless
(
and
(
not
ignore-cache
)
(
process-source-registry-cache
directory
collect
))
(
let
((
asds
(
collect-asds-in-directory
dir
collect
)))
(
or
recurse-beyond-asds
(
not
asds
)))))
#'
(
lambda
(
x
)
; x will be a directory pathname
(
and
(
not
(
member
(
car
(
last
(
pathname-directory
x
)))
exclude
:test
#'
equal
))
(
flet
((
pathname-key
(
x
)
(
namestring
(
truename*
x
))))
(
let
((
visitedp
(
gethash
(
pathname-key
x
)
visited
)))
(
if
visitedp
nil
(
setf
(
gethash
(
pathname-key
x
)
visited
)
t
))))))
(
constantly
nil
))))
(
defun
validate-source-registry-directive
(
directive
)
(
or
(
member
directive
'
(
:default-registry
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment