Ticket #31702: patch-src-symlink.in.diff

File patch-src-symlink.in.diff, 1.2 KB (added by gauravb7090@…, 10 years ago)
  • src/macports1.0/macports.tcl

     
    12731273    $workername alias mport_lookup mportlookup
    12741274    $workername alias mport_info mportinfo
    12751275    $workername alias set_phase set_phase
     1276    $workername alias mport_select mportselect
    12761277
    12771278    # instantiate the UI call-backs
    12781279    foreach priority $macports::ui_priorities {
  • src/port1.0/portuninstall.tcl

     
    5757}
    5858
    5959proc portuninstall::uninstall_main {args} {
    60     global subport version revision portvariants user_options
     60    global subport version revision portvariants user_options select.group select.file
    6161    registry_uninstall $subport $version $revision $portvariants [array get user_options]
     62
     63    if {[info exists select.group] && [info exists select.file] } {
     64        if {[mport_select show ${select.group}] eq ${select.file} } {
     65            mport_select set ${select.group} "none"
     66        }
     67    }
     68
    6269    return 0
    6370}