Opened 19 years ago

Closed 15 years ago

Last modified 14 years ago

#2725 closed enhancement (fixed)

Script to repair corrupted file_map.db files — at Version 3

Reported by: kballard (Lily Ballard) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: contrib Version:
Keywords: Cc:
Port:

Description (last modified by jmroot (Joshua Root))

I have attached a script I just wrote to generate a new old-style file_map file from the receipts (which DarwinPorts can then convert into a file_map.db file). It assumes port images are used and assumes current receipt format. Assuming these requirements are met, it can really be a lifesaver. I have 212 ports installed and I corrupted my file_map.db file (see bug #2724) and I *really* didn't want to reinstall all these ports. I wrote this script and ran it and then had DarwinPorts convert it to the file_map.db file and everything is fine and dandy now. Because of this script, I simply lost 2 hours of my life instead of 2 days. And next time this happens (hopefully never), it will only take 2 minutes of my life.

Change History (5)

Changed 19 years ago by kballard (Lily Ballard)

Attachment: repairfilemap.tcl added

script to repair file_map

comment:1 Changed 19 years ago by kballard (Lily Ballard)

dependson: 2726

comment:2 Changed 17 years ago by nox@…

Milestone: MacPorts base enhancements
Priority: ExpectedNormal
Version: 1.0

Changed 16 years ago by jmroot (Joshua Root)

Attachment: repairfilemap.2.tcl added

updated for current MacPorts

comment:3 Changed 15 years ago by jmroot (Joshua Root)

Description: modified (diff)
Resolution: fixed
Status: newclosed

Put the script in contrib/ in r48773.

Note: See TracTickets for help on using tickets.