#48327: malformed registry --------------------------+-------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: Resolution: invalid | Keywords: Port: | --------------------------+-------------------------------- Comment (by cal@…): Replying to [comment:2 rjvbertin@…]:
If that's the case, there should be an additional safety: backup the registry.db file before starting the (un)installation process (and remove it after successful completion).
I would expect such features to be the point of a database, and I would expect SQLite to provide this safety. Since it clearly doesn't (you didn't disable the journaling, right?), we should probably make a copy, yes. Patches are very welcome on this one. Note that we cannot copy the database reliably after we've opened the database, so the copy must be done before opening. -- Ticket URL: <https://trac.macports.org/ticket/48327#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X