Commit d03b86e16ea744f5a490a749e0bb19aee84c4d90

Thomas de Grivel 2022-03-28T20:14:02

dedup dependency resolution and print message

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/prepare-build.lisp b/prepare-build.lisp
index a94bd53..e3df078 100644
--- a/prepare-build.lisp
+++ b/prepare-build.lisp
@@ -163,10 +163,11 @@
   (let (dependencies)
     (labels ((dfs (name)
                (let ((sys (asdf:find-system name)))
-                 (when sys
+                 (when (and sys (not (find sys dependencies)))
                    (locally (declare (type asdf:system sys))
+                     (format t "~& ~A" sys) (force-output)
                      (map 'nil #'dfs (asdf:system-depends-on sys))
-                     (pushnew sys dependencies))))))
+                     (push sys dependencies))))))
       (dfs name)
       (nreverse dependencies))))