[MacPorts] #2725: Script to repair corrupted file_map.db files

MacPorts noreply at macports.org
Sat Mar 28 11:28:02 PDT 2009


#2725: Script to repair corrupted file_map.db files
---------------------------+------------------------------------------------
  Reporter:  kevin@…       |       Owner:  macports-tickets@…                   
      Type:  enhancement   |      Status:  closed                               
  Priority:  Normal        |   Milestone:  MacPorts Future                      
 Component:  base          |     Version:                                       
Resolution:  fixed         |    Keywords:                                       
      Port:                |  
---------------------------+------------------------------------------------
Changes (by jmr@…):

  * status:  new => closed
  * resolution:  => fixed


Old description:

> 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.

New description:

 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.

--

Comment:

 Put the script in contrib/ in r48773.

-- 
Ticket URL: <http://trac.macports.org/ticket/2725#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list