New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79517


Ignore:
Timestamp:
06/16/11 07:17:19 (4 years ago)
Author:
jmr@…
Message:

subport fixes

Location:
trunk/base/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/macports1.0/macports.tcl

    r79470 r79517  
    130130    global ::debuglog ::debuglogname 
    131131 
    132     set portname [_mportkey $mport name] 
     132    set portname [_mportkey $mport subport] 
    133133    set portpath [_mportkey $mport portpath] 
    134134 
     
    13701370    } 
    13711371 
    1372     ditem_key $mport provides [$workername eval return \$name] 
     1372    ditem_key $mport provides [$workername eval return \$subport] 
    13731373 
    13741374    return $mport 
     
    14041404proc mportclose_installed {mport} { 
    14051405    global macports::registry.path 
    1406     foreach key {name version revision portvariants} { 
     1406    foreach key {subport version revision portvariants} { 
    14071407        set $key [_mportkey $mport $key] 
    14081408    } 
    14091409    mportclose $mport 
    1410     set portfiles_dir [file join ${registry.path} registry portfiles $name] 
     1410    set portfiles_dir [file join ${registry.path} registry portfiles $subport] 
    14111411    set portfile [file join $portfiles_dir "${version}_${revision}${portvariants}" Portfile] 
    14121412    file delete -force $portfile [file dirname $portfile] 
     
    15031503    # Check for the presence of the port in the registry 
    15041504    set workername [ditem_key $mport workername] 
    1505     return [$workername eval registry_exists_for_name \${name}] 
     1505    return [$workername eval registry_exists_for_name \${subport}] 
    15061506} 
    15071507 
     
    15091509proc _mportactive {mport} { 
    15101510    set workername [ditem_key $mport workername] 
    1511     if {![catch {set reslist [$workername eval registry_active \${name}]}] && [llength $reslist] > 0} { 
     1511    if {![catch {set reslist [$workername eval registry_active \${subport}]}] && [llength $reslist] > 0} { 
    15121512        set i [lindex $reslist 0] 
    15131513        set name [lindex $i 0] 
     
    15741574    set conflictlist {} 
    15751575    if {[llength $conflictinfo] > 0} { 
    1576         ui_debug "Checking for conflicts against [_mportkey $mport name]" 
     1576        ui_debug "Checking for conflicts against [_mportkey $mport subport]" 
    15771577        foreach conflictport ${conflictinfo} { 
    15781578            if {[_mportispresent $mport port:${conflictport}]} { 
     
    15811581        } 
    15821582    } else { 
    1583         ui_debug "[_mportkey $mport name] has no conflicts" 
     1583        ui_debug "[_mportkey $mport subport] has no conflicts" 
    15841584    } 
    15851585 
     
    15911591 
    15921592proc _mportexec {target mport} { 
    1593     set portname [_mportkey $mport name] 
     1593    set portname [_mportkey $mport subport] 
    15941594    macports::push_log $mport 
    15951595    # xxx: set the work path? 
     
    16341634        return 1 
    16351635    } 
    1636     set portname [_mportkey $mport name] 
     1636    set portname [_mportkey $mport subport] 
    16371637    if {$target != "clean"} { 
    16381638        macports::push_log $mport 
     
    16451645        # see if we actually need to build this port 
    16461646        if {($target != "activate" && $target != "install") || 
    1647             ![$workername eval registry_exists \$name \$version \$revision \$portvariants]} { 
     1647            ![$workername eval registry_exists \$subport \$version \$revision \$portvariants]} { 
    16481648            # possibly warn or error out depending on how old xcode is 
    16491649            if {[$workername eval _check_xcode_version] != 0} { 
     
    16611661        } 
    16621662 
    1663         ui_msg -nonewline "--->  Computing dependencies for [_mportkey $mport name]" 
     1663        ui_msg -nonewline "--->  Computing dependencies for [_mportkey $mport subport]" 
    16641664        if {[macports::ui_isset ports_debug]} { 
    16651665            # play nice with debug messages 
     
    17921792                                } 
    17931793                                if {[llength $missing] > 0} { 
    1794                                     ui_error "Cannot install [_mportkey $mport name] for the arch(s) '$required_archs' because" 
     1794                                    ui_error "Cannot install [_mportkey $mport subport] for the arch(s) '$required_archs' because" 
    17951795                                    ui_error "its dependency $dep_portname is only installed for the arch '$active_archs'" 
    17961796                                    ui_error "and the configured universal_archs '$macports::universal_archs' are not sufficient." 
     
    18041804                            } else { 
    18051805                                # already universal 
    1806                                 ui_error "Cannot install [_mportkey $mport name] for the arch(s) '$required_archs' because" 
     1806                                ui_error "Cannot install [_mportkey $mport subport] for the arch(s) '$required_archs' because" 
    18071807                                ui_error "its dependency $dep_portname is only installed for the archs '$active_archs'." 
    18081808                                return -code error "architecture mismatch" 
    18091809                            } 
    18101810                        } else { 
    1811                             ui_error "Cannot install [_mportkey $mport name] for the arch(s) '$required_archs' because" 
     1811                            ui_error "Cannot install [_mportkey $mport subport] for the arch(s) '$required_archs' because" 
    18121812                            ui_error "its dependency $dep_portname is only installed for the arch '$active_archs'" 
    18131813                            ui_error "and does not have a universal variant." 
     
    26982698                } 
    26992699                if {$arch_mismatch} { 
    2700                     macports::_explain_arch_mismatch [_mportkey $mport name] $dep_portname $required_archs $supported_archs $has_universal 
     2700                    macports::_explain_arch_mismatch [_mportkey $mport subport] $dep_portname $required_archs $supported_archs $has_universal 
    27012701                    return -code error "architecture mismatch" 
    27022702                } 
     
    28662866        activate    - 
    28672867        ""          { 
    2868             if {[$workername eval registry_exists \$name \$version \$revision \$portvariants] 
     2868            if {[$workername eval registry_exists \$subport \$version \$revision \$portvariants] 
    28692869                || [$workername eval _archive_available]} { 
    28702870                return "depends_lib depends_run" 
  • trunk/base/src/registry2.0/portuninstall.tcl

    r79167 r79517  
    5555           macports::portimagefilepath 
    5656    array set options $optionslist 
     57    if {[info exists options(subport)]} { 
     58        # don't want this set when calling registry::run_target 
     59        unset options(subport) 
     60        set optionslist [array get options] 
     61    } 
    5762 
    5863    if {![info exists uninstall.force]} { 
Note: See TracChangeset for help on using the changeset viewer.