Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asdf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
15
Issues
15
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
asdf
asdf
Commits
7647ca49
Commit
7647ca49
authored
Mar 07, 2016
by
Robert Goldman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add loop check to search for ASD files.
parent
68b332cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
source-registry.lisp
source-registry.lisp
+16
-9
No files found.
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