Opened 20 years ago

Closed 16 years ago

Last modified 15 years ago

#2725 closed enhancement (fixed)

Script to repair corrupted file_map.db files

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.

Attachments (2)

repairfilemap.tcl (3.4 KB) - added by kballard (Lily Ballard) 20 years ago.
script to repair file_map
repairfilemap.2.tcl (3.4 KB) - added by jmroot (Joshua Root) 16 years ago.
updated for current MacPorts

Download all attachments as: .zip

Change History (6)

Changed 20 years ago by kballard (Lily Ballard)

Attachment: repairfilemap.tcl added

script to repair file_map

comment:1 Changed 20 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 16 years ago by jmroot (Joshua Root)

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

Put the script in contrib/ in r48773.

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

Component: basecontrib
Milestone: MacPorts Future
Note: See TracTickets for help on using tickets.