Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#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)

setup-api-write-info.diff (461 bytes) - added by Mario Domenech Goulart 13 years ago.

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by Mario Domenech Goulart

Attachment: setup-api-write-info.diff added

comment:1 Changed 13 years ago by felix winkelmann

Resolution: fixed
Status: newclosed

Thanks - applied in experimental.

comment:2 Changed 13 years ago by felix winkelmann

Milestone: 4.7.04.8.0

Milestone 4.7.0 deleted

comment:3 Changed 12 years ago by felix winkelmann

Milestone: 4.8.04.9.0

Milestone 4.8.0 deleted

Note: See TracTickets for help on using tickets.