New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79586


Ignore:
Timestamp:
06/19/11 05:27:00 (4 years ago)
Author:
jmr@…
Message:

run upgrade scripts before selfupdating in postflight

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/portmgr/dmg/postflight

    r79584 r79586  
    6767# Command to update the MacPorts installation through "selfupdate": 
    6868function update_macports { 
     69    # Add [default] tag to the central MacPorts repository, if it isn't already 
     70    echo "Adding [default] tag to sources.conf if needed..." 
     71    ${TCLSH} ${PACKAGE_PATH}/Contents/Resources/upgrade_sources_conf_default.tcl ${PREFIX} 
     72    # Convert image directories (and direct mode installs) to image archives 
     73    echo "Updating port image format..." 
     74    ${TCLSH} ${PACKAGE_PATH}/Contents/Resources/images_to_archives.tcl ${MACPORTS_TCL_DIR} 
     75 
    6976    echo "Synchronizing the MacPorts installation with the project's rsync server..." 
    7077    if ! ${BINPATH}/port -v selfupdate; then  
     
    7481        echo "Successful!" 
    7582    fi 
    76      
    77     # Add [default] tag to the central MacPorts repository, if it isn't already 
    78     ${TCLSH} ${PACKAGE_PATH}/Contents/Resources/upgrade_sources_conf_default.tcl ${PREFIX} 
    79     # Convert image directories (and direct mode installs) to image archives 
    80     ${TCLSH} ${PACKAGE_PATH}/Contents/Resources/images_to_archives.tcl ${MACPORTS_TCL_DIR} 
    8183} 
    8284 
Note: See TracChangeset for help on using the changeset viewer.