[MacPorts] #29223: if an install is interrupted, a later install of the same package can fail if version number has since changed.

MacPorts noreply at macports.org
Sun Aug 12 17:28:25 PDT 2012


#29223: if an install is interrupted, a later install of the same package can fail
if version number has since changed.
-----------------------------------+----------------------------------------
  Reporter:  rogerdpack@…          |       Owner:  macports-tickets@…                   
      Type:  defect                |      Status:  reopened                             
  Priority:  Normal                |   Milestone:  MacPorts Future                      
 Component:  base                  |     Version:  1.9.2                                
Resolution:                        |    Keywords:                                       
      Port:                        |  
-----------------------------------+----------------------------------------
Changes (by cal@…):

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


Comment:

 The current state of the statefile handling is still buggy:
  - port fetch $someport, followed by
  - port build $someport +variant
 doesn't correctly restart fetch phase. This is because the variants check
 relied on the statefile being empty when no variants have been selected
 and implicitly assuming the empty variant was selected if it is not.
 Starting fetch without specifying a variant doesn't write a "variant: "
 line into the statefile, which is what the code currently checks for.

 So, either, we always write a "variant: " line and ignore it when checking
 the selected variants, or we assume variants to be "" as soon as there's a
 "target: " line in the statefile.

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


More information about the macports-tickets mailing list