Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Changeset 21110

Show
Ignore:
Timestamp:
01/02/07 14:32:21 (23 months ago)
Author:
dluke@…
Message:

Set upgrade.target back to archive (from unarchive)

When upgrade_action is set to 'archive' we get this sequence of events:

fetch/configure/build/destroot/archive new version
uninstall old version
install new version

With upgrade action set to 'unarchive' (as it is currently) we get this sequence:

uninstall old versino
fetch/configure/build/destroot/archive/install new version

Changing it to 'unarchive' allows one to copy archives over and have upgrade 'just work', so changing it back will also lead to some undesired behavior (but less undesired I think, and probably easier to fix the archive target to check for an existing archive and not re-create it without force than to modify the sequence of events for the unarchive target).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/base/src/darwinports1.0/darwinports.tcl

    r19376 r21110  
    16721672        # install version_in_tree 
    16731673        if {0 == [string compare "yes" ${darwinports::portarchivemode}]} { 
    1674                 set upgrade_action "unarchive" 
     1674                set upgrade_action "archive" 
    16751675        } else { 
    16761676                set upgrade_action "destroot"