#48327: malformed registry --------------------------+-------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: Resolution: invalid | Keywords: Port: | --------------------------+-------------------------------- Comment (by rjvbertin@…): Replying to [comment:1 cal@…]:
As you noticed, interrupting installation/uninstallation is dangerous, especially in versions of MacPorts that don't have signal handling yet.
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). Unless the backup file already exists, in which case an error should be raised or confirmation requested from the user. -- Ticket URL: <https://trac.macports.org/ticket/48327#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X