#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)
Change History (6)
Changed 20 years ago by kballard (Lily Ballard)
Attachment: | repairfilemap.tcl added |
---|
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: | Expected → Normal |
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: | new → closed |
Put the script in contrib/ in r48773.
comment:4 Changed 15 years ago by jmroot (Joshua Root)
Component: | base → contrib |
---|---|
Milestone: | MacPorts Future |
script to repair file_map