New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79170


Ignore:
Timestamp:
06/03/11 22:15:08 (4 years ago)
Author:
jmr@…
Message:

port_cutleaves: adapt to registry changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/port_cutleaves/port_cutleaves.in

    r67626 r79170  
    259259        } 
    260260        if {[llength [info commands "registry_uninstall::uninstall"]] == 1} { 
    261             if {[catch {registry_uninstall::uninstall [name $port] [composite_version $port] {}} \ 
    262                         result]} { 
    263                 set exit_status 1 
    264                 puts stderr "Error: $result" 
    265                 continue 
     261            if {[llength [info commands "registry_uninstall::uninstall_composite"]] == 1} { 
     262                if {[catch {registry_uninstall::uninstall [name $port] [version $port] [revision $port] [variants $port] {}} \ 
     263                            result]} { 
     264                    set exit_status 1 
     265                    puts stderr "Error: $result" 
     266                    continue 
     267                } 
     268            } else { 
     269                if {[catch {registry_uninstall::uninstall [name $port] [composite_version $port] {}} \ 
     270                            result]} { 
     271                    set exit_status 1 
     272                    puts stderr "Error: $result" 
     273                    continue 
     274                } 
    266275            } 
    267276        } elseif {[catch {portuninstall::uninstall [name $port] [composite_version $port] {}} \ 
Note: See TracChangeset for help on using the changeset viewer.