[MacPorts] #29105: corruption - malformed partial receipt can be written

MacPorts noreply at macports.org
Tue Apr 12 09:59:32 PDT 2011


#29105: corruption - malformed partial receipt can be written
-----------------------------------------+----------------------------------
 Reporter:  alangrow+macports@…          |       Owner:  macports-tickets@…                   
     Type:  defect                       |      Status:  new                                  
 Priority:  Normal                       |   Milestone:                                       
Component:  base                         |     Version:  1.9.2                                
 Keywords:  malformed receipt            |        Port:                                       
-----------------------------------------+----------------------------------
 When upgrading, port ran out of disk space, but wrote a partial receipt
 file. After freeing up space and retrying the operation, port would error
 out with a "malformed receipt" error.

 It took a while to track this down, but removing the partial receipt file
 did finally get things working again.

 I haven't looked at the port code but these problems can usually be
 avoided by first writing to a temporary file, closing, and then (if there
 were no errors) doing an atomic rename.

-- 
Ticket URL: <https://trac.macports.org/ticket/29105>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list