Ticket #16234 (closed defect: fixed)
portindex should be atomic
|Reported by:||ryandesign@…||Owned by:||ryandesign@…|
The portindex script should work atomically -- it should replace the old PortIndex file with the new one in a single step. Currently portindex clears the PortIndex and starts rebuilding it. This means that while the portindex script is running, you really can't use MacPorts (for example to install other ports) because the PortIndex is incomplete until the script finishes. portindex should rebuild the PortIndex in a temporary file, and only move the temporary file over the real PortIndex once it's completely done.
I initially brought this up on macports-dev.
- Milestone changed from MacPorts base bugs to MacPorts 1.7.0
- Owner changed from macports-tickets@… to ryandesign@…
- Status changed from new to assigned