Skip to content

Commit 43246d8

Browse files
committed
Handle missing directories in bundles.
1 parent 7e9a17c commit 43246d8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

quicklisp/bundle-template.lisp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
(make-table :data-source (relative "local-projects/")
117117
:init-function #'initialize-local-projects-table)))
118118

119-
(=matching-data-sources (&rest tables)
119+
(=matching-data-sources (tables)
120120
(let ((data-sources (mapcar #'data-source tables)))
121121
(lambda (table)
122122
(member (data-source table) data-sources
@@ -143,18 +143,18 @@
143143

144144
(let ((existing (check-for-existing-searcher
145145
asdf:*system-definition-search-functions*)))
146-
(let* ((bundled (make-bundled-systems-table))
146+
(let* ((local (make-local-projects-table))
147147
(bundled-local-projects
148148
(make-bundled-local-projects-systems-table))
149-
(local (make-local-projects-table))
149+
(bundled (make-bundled-systems-table))
150+
(new-tables (remove nil (list local
151+
bundled-local-projects
152+
bundled)))
150153
(existing-tables (get searcher-name indicator))
151-
(filter (=matching-data-sources bundled local)))
154+
(filter (=matching-data-sources new-tables)))
152155
(setf (get searcher-name indicator)
153-
(remove nil (list* local bundled-local-projects bundled
154-
(delete-if filter existing-tables))))
155-
(clear-asdf local)
156-
(clear-asdf bundled-local-projects)
157-
(clear-asdf bundled))
156+
(append new-tables (delete-if filter existing-tables)))
157+
(map nil #'clear-asdf new-tables))
158158
(unless existing
159159
(setf (symbol-function searcher-name) #'search-function)
160160
(push searcher-name asdf:*system-definition-search-functions*)))

0 commit comments

Comments
 (0)