further repair for test with 'same in compiled-file-roots
This commit is contained in:
parent
5e9535b3a5
commit
6099ec80b3
|
@ -193,9 +193,13 @@
|
||||||
(test (file-or-directory-modify-seconds
|
(test (file-or-directory-modify-seconds
|
||||||
(let ([dir (path-only (collection-file-path "zip.rkt" "file"))])
|
(let ([dir (path-only (collection-file-path "zip.rkt" "file"))])
|
||||||
(for/or ([root (in-list (current-compiled-file-roots))])
|
(for/or ([root (in-list (current-compiled-file-roots))])
|
||||||
(define file (if (relative-path? root)
|
(define file (cond
|
||||||
(build-path dir root compiled-dir "zip_rkt.zo")
|
[(eq? root 'same)
|
||||||
(build-path (reroot-path dir root) compiled-dir "zip_rkt.zo")))
|
(build-path dir compiled-dir "zip_rkt.zo")]
|
||||||
|
[(relative-path? root)
|
||||||
|
(build-path dir root compiled-dir "zip_rkt.zo")]
|
||||||
|
[else
|
||||||
|
(build-path (reroot-path dir root) compiled-dir "zip_rkt.zo")]))
|
||||||
(and (file-exists? file)
|
(and (file-exists? file)
|
||||||
file))))
|
file))))
|
||||||
car
|
car
|
||||||
|
|
Loading…
Reference in New Issue
Block a user