fix for (setup) when (current-library-collection-links) contains hash tables
This commit is contained in:
parent
238cd527f4
commit
42c897a75f
9
racket/collects/setup/setup-core.rkt
Normal file → Executable file
9
racket/collects/setup/setup-core.rkt
Normal file → Executable file
|
@ -521,11 +521,12 @@
|
||||||
#:when (directory-exists? (build-path cp collection)))
|
#:when (directory-exists? (build-path cp collection)))
|
||||||
(cc! (list collection) #:path (build-path cp collection)))]
|
(cc! (list collection) #:path (build-path cp collection)))]
|
||||||
[else ; must be a hash table that simulates a links file:
|
[else ; must be a hash table that simulates a links file:
|
||||||
(for ([(coll-sym dir) (in-hash inst-links)])
|
(for* ([(coll-sym dir-list) (in-hash inst-links)]
|
||||||
|
[dir (in-list dir-list)])
|
||||||
(cond
|
(cond
|
||||||
[coll-sym
|
[coll-sym
|
||||||
;; A single collection
|
;; A single collection
|
||||||
(cc! (string-split "/" (symbol->string coll-sym)) #:path dir)]
|
(cc! (map string->path (string-split (symbol->string coll-sym) "/")) #:path dir)]
|
||||||
[(directory-exists? dir)
|
[(directory-exists? dir)
|
||||||
;; A directory that holds collections:
|
;; A directory that holds collections:
|
||||||
(for ([collection (directory-list dir)]
|
(for ([collection (directory-list dir)]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user