Open Bug 972432 Opened 12 years ago Updated 3 years ago

FileCopier creates directories corresponding to optional files

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

People

(Reporter: nalexander, Unassigned)

References

Details

There is even a test documenting this behaviour in python/mozbuild/mozpack/test/test_copier.py. The set of directories created is maintained by the base FileRegistry, which by design doesn't know anything about the files created. One way to fix this ticket would be to have BaseFile declare is_optional, so that FileRegistry can interrogate its targets.
I'm not convinced this is a bug. "optional exists" really means "we expect it to exist eventually." We need to incur the cost of creating directories sometime. Might as well do it up front. If nothing else, this makes the code path for eventual file creation simpler, as they don't need to be concerned with directory creation.
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.