fix for (setup) when (current-library-collection-links) contains hash tables
This commit is contained in:
parent
238cd527f4
commit
42c897a75f
5
racket/collects/setup/setup-core.rkt
Normal file → Executable file
5
racket/collects/setup/setup-core.rkt
Normal file → Executable file
|
@ -521,11 +521,12 @@
|
|||
#:when (directory-exists? (build-path cp collection)))
|
||||
(cc! (list collection) #:path (build-path cp collection)))]
|
||||
[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
|
||||
[coll-sym
|
||||
;; 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)
|
||||
;; A directory that holds collections:
|
||||
(for ([collection (directory-list dir)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user