setup-scribblings: guard against missing 'scribblings
Since `get-info/full` may return a function that is undefined for the symbol 'scribblings, pass a failure thunk. The function can be undefined for 'scribblings if: 1. Install a package with a `scribblings` in its info.rkt 2. Remove `scribblings` from the info file 3. Run `raco setup`
This commit is contained in:
parent
f29d77d3d8
commit
7d2e23dc28
|
@ -180,7 +180,7 @@
|
||||||
infos)])
|
infos)])
|
||||||
(and (not (memq #f infos)) infos))))
|
(and (not (memq #f infos)) infos))))
|
||||||
(define ((get-docs main-dirs) i rec)
|
(define ((get-docs main-dirs) i rec)
|
||||||
(let* ([pre-s (and i (i 'scribblings))]
|
(let* ([pre-s (and i (i 'scribblings (λ () #f)))]
|
||||||
[s (validate-scribblings-infos pre-s)]
|
[s (validate-scribblings-infos pre-s)]
|
||||||
[dir (directory-record-path rec)])
|
[dir (directory-record-path rec)])
|
||||||
(if s
|
(if s
|
||||||
|
|
Loading…
Reference in New Issue
Block a user