raco setup: fix handling of 'lib paths in "info-cache.rktd"
This commit is contained in:
parent
7e42b8dea2
commit
f54e3b1c15
|
@ -951,7 +951,7 @@
|
||||||
(set! all-ok? #t)
|
(set! all-ok? #t)
|
||||||
(for ([i l])
|
(for ([i l])
|
||||||
(match i
|
(match i
|
||||||
[(list (and a (or (? bytes?) (list 'info (? bytes?) ...)))
|
[(list (and a (or (? bytes?) (list (or 'info 'lib) (? bytes?) ...)))
|
||||||
(list (? symbol? b) ...) c (? integer? d) (? integer? e))
|
(list (? symbol? b) ...) c (? integer? d) (? integer? e))
|
||||||
(define p (if (bytes? a) (bytes->path a) a))
|
(define p (if (bytes? a) (bytes->path a) a))
|
||||||
;; Check that the path is suitably absolute or relative:
|
;; Check that the path is suitably absolute or relative:
|
||||||
|
@ -959,8 +959,9 @@
|
||||||
(case info-path-mode
|
(case info-path-mode
|
||||||
[(relative abs-in-relative)
|
[(relative abs-in-relative)
|
||||||
(or (and (list? p)
|
(or (and (list? p)
|
||||||
(main-lib-relative->path
|
(if (eq? (car p) 'info)
|
||||||
(info-relative->path p)))
|
(info-relative->path p)
|
||||||
|
(main-lib-relative->path p)))
|
||||||
(and (complete-path? p)
|
(and (complete-path? p)
|
||||||
;; `c' must be `(lib ...)'
|
;; `c' must be `(lib ...)'
|
||||||
(list? c)
|
(list? c)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user