#556 closed defect (fixed)
setup-api.scm's `write-info' doesn't check for setup-info's directory existence before writing it
| Reported by: | Mario Domenech Goulart | Owned by: | felix winkelmann |
|---|---|---|---|
| Priority: | major | Milestone: | 4.9.0 |
| Component: | core libraries | Version: | 4.6.x |
| Keywords: | setup-api.scm, write-info, install-extension, setup-helper | Cc: | |
| Estimated difficulty: |
Description
Usually PREFIX/lib/chicken/BINVERSION exists when write-info is called, but there are certain corner cases (e.g., setup-helper on cross environments) which make write-info fail on trying to write to a file in a directory which has not been created.
The corner case triggered by setup-helper is that it doesn't contain any file to be installed on PREFIX/lib/chicken/BINVERSION besides the setup-info.
The attached patch fixes the problem by making write-info call ensure-directory before actually writing the setup-info file.
Attachments (1)
Change History (4)
Changed 15 years ago by
| Attachment: | setup-api-write-info.diff added |
|---|
comment:1 Changed 15 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note: See
TracTickets for help on using
tickets.

Thanks - applied in experimental.