Ticket #27666: port.tcl-actinact.patch
File port.tcl-actinact.patch, 1.5 KB (added by outis, 14 years ago) |
---|
-
port.
old new 711 711 712 712 proc get_inactive_ports {} { 713 713 return [get_installed_ports no no] 714 714 } 715 715 716 proc get_actinact_ports {} { 717 set inactive_ports [get_inactive_ports] 718 set active_ports [get_active_ports] 719 set results {} 720 721 foreach port $inactive_ports { 722 array set portspec $port 723 set portname $portspec(name) 724 set portversion $portspec(version) 725 726 set inact($portname,$portversion) $port 727 } 728 729 foreach port $active_ports { 730 array set portspec $port 731 set portname $portspec(name) 732 set portversion $portspec(version) 733 734 set inact_ports [array get inact $portname,*] 735 if {[llength $inact_ports] > 0} { 736 foreach {n inact_spec} $inact_ports { 737 lappend results $inact_spec 738 } 739 740 lappend results $port 741 } 742 } 743 return $results 744 } 716 745 717 746 proc get_outdated_ports {} { 718 747 global macports::registry.installtype 719 748 set is_image_mode [expr 0 == [string compare "image" ${macports::registry.installtype}]] 720 749 … … 1161 1190 ^all(@.*)?$ - 1162 1191 ^installed(@.*)?$ - 1163 1192 ^uninstalled(@.*)?$ - 1164 1193 ^active(@.*)?$ - 1165 1194 ^inactive(@.*)?$ - 1195 ^actinact(@.*)?$ - 1166 1196 ^leaves(@.*)?$ - 1167 1197 ^outdated(@.*)?$ - 1168 1198 ^obsolete(@.*)?$ - 1169 1199 ^requested(@.*)?$ - 1170 1200 ^unrequested(@.*)?$ -