Changeset 79517
- Timestamp:
- 06/16/11 07:17:19 (4 years ago)
- Location:
- trunk/base/src
- Files:
-
- 2 edited
-
macports1.0/macports.tcl (modified) (15 diffs)
-
registry2.0/portuninstall.tcl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/base/src/macports1.0/macports.tcl
r79470 r79517 130 130 global ::debuglog ::debuglogname 131 131 132 set portname [_mportkey $mport name]132 set portname [_mportkey $mport subport] 133 133 set portpath [_mportkey $mport portpath] 134 134 … … 1370 1370 } 1371 1371 1372 ditem_key $mport provides [$workername eval return \$ name]1372 ditem_key $mport provides [$workername eval return \$subport] 1373 1373 1374 1374 return $mport … … 1404 1404 proc mportclose_installed {mport} { 1405 1405 global macports::registry.path 1406 foreach key { nameversion revision portvariants} {1406 foreach key {subport version revision portvariants} { 1407 1407 set $key [_mportkey $mport $key] 1408 1408 } 1409 1409 mportclose $mport 1410 set portfiles_dir [file join ${registry.path} registry portfiles $ name]1410 set portfiles_dir [file join ${registry.path} registry portfiles $subport] 1411 1411 set portfile [file join $portfiles_dir "${version}_${revision}${portvariants}" Portfile] 1412 1412 file delete -force $portfile [file dirname $portfile] … … 1503 1503 # Check for the presence of the port in the registry 1504 1504 set workername [ditem_key $mport workername] 1505 return [$workername eval registry_exists_for_name \${ name}]1505 return [$workername eval registry_exists_for_name \${subport}] 1506 1506 } 1507 1507 … … 1509 1509 proc _mportactive {mport} { 1510 1510 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} { 1512 1512 set i [lindex $reslist 0] 1513 1513 set name [lindex $i 0] … … 1574 1574 set conflictlist {} 1575 1575 if {[llength $conflictinfo] > 0} { 1576 ui_debug "Checking for conflicts against [_mportkey $mport name]"1576 ui_debug "Checking for conflicts against [_mportkey $mport subport]" 1577 1577 foreach conflictport ${conflictinfo} { 1578 1578 if {[_mportispresent $mport port:${conflictport}]} { … … 1581 1581 } 1582 1582 } else { 1583 ui_debug "[_mportkey $mport name] has no conflicts"1583 ui_debug "[_mportkey $mport subport] has no conflicts" 1584 1584 } 1585 1585 … … 1591 1591 1592 1592 proc _mportexec {target mport} { 1593 set portname [_mportkey $mport name]1593 set portname [_mportkey $mport subport] 1594 1594 macports::push_log $mport 1595 1595 # xxx: set the work path? … … 1634 1634 return 1 1635 1635 } 1636 set portname [_mportkey $mport name]1636 set portname [_mportkey $mport subport] 1637 1637 if {$target != "clean"} { 1638 1638 macports::push_log $mport … … 1645 1645 # see if we actually need to build this port 1646 1646 if {($target != "activate" && $target != "install") || 1647 ![$workername eval registry_exists \$ name\$version \$revision \$portvariants]} {1647 ![$workername eval registry_exists \$subport \$version \$revision \$portvariants]} { 1648 1648 # possibly warn or error out depending on how old xcode is 1649 1649 if {[$workername eval _check_xcode_version] != 0} { … … 1661 1661 } 1662 1662 1663 ui_msg -nonewline "---> Computing dependencies for [_mportkey $mport name]"1663 ui_msg -nonewline "---> Computing dependencies for [_mportkey $mport subport]" 1664 1664 if {[macports::ui_isset ports_debug]} { 1665 1665 # play nice with debug messages … … 1792 1792 } 1793 1793 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" 1795 1795 ui_error "its dependency $dep_portname is only installed for the arch '$active_archs'" 1796 1796 ui_error "and the configured universal_archs '$macports::universal_archs' are not sufficient." … … 1804 1804 } else { 1805 1805 # 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" 1807 1807 ui_error "its dependency $dep_portname is only installed for the archs '$active_archs'." 1808 1808 return -code error "architecture mismatch" 1809 1809 } 1810 1810 } 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" 1812 1812 ui_error "its dependency $dep_portname is only installed for the arch '$active_archs'" 1813 1813 ui_error "and does not have a universal variant." … … 2698 2698 } 2699 2699 if {$arch_mismatch} { 2700 macports::_explain_arch_mismatch [_mportkey $mport name] $dep_portname $required_archs $supported_archs $has_universal2700 macports::_explain_arch_mismatch [_mportkey $mport subport] $dep_portname $required_archs $supported_archs $has_universal 2701 2701 return -code error "architecture mismatch" 2702 2702 } … … 2866 2866 activate - 2867 2867 "" { 2868 if {[$workername eval registry_exists \$ name\$version \$revision \$portvariants]2868 if {[$workername eval registry_exists \$subport \$version \$revision \$portvariants] 2869 2869 || [$workername eval _archive_available]} { 2870 2870 return "depends_lib depends_run" -
trunk/base/src/registry2.0/portuninstall.tcl
r79167 r79517 55 55 macports::portimagefilepath 56 56 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 } 57 62 58 63 if {![info exists uninstall.force]} {
Note: See TracChangeset
for help on using the changeset viewer.

