Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#25592 closed defect (fixed)

port outdated should show ports in alphabetical order

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 2.0.0
Component: base Version: 1.9.1
Keywords: Cc: lperry (Perry Lee)
Port:

Description

"port outdated" isn't showing ports in any discernible order:

$ port outdated
The following installed ports are outdated:
apache2                        2.2.15_1 < 2.2.15_2       
cacti                          0.8.7e_0 < 0.8.7e_1       
cclient                        2007e_0 < 2007e_1         
cyrus-sasl2                    2.1.23_1 < 2.1.23_2       
gcc_select                     0.1_4 < 0.3_0             
gnome-vfs                      2.24.3_0 < 2.24.3_1       
libesmtp                       1.0.4_1 < 1.0.4_2         
libhsplasma                    0.0-548_0 < 0.0-583_1     
neon                           0.29.3_1 < 0.29.3_2       
net-snmp                       5.5_1 < 5.5_2             
openssl                        0.9.8o_0 < 1.0.0a_0       
php4                           4.4.9_10 < 4.4.9_11       
postgresql82                   8.2.17_0 < 8.2.17_1       
postgresql83                   8.3.11_0 < 8.3.11_1       
postgresql84                   8.4.4_0 < 8.4.4_1         
python25                       2.5.5_0 < 2.5.5_1         
serf                           0.6.1_0 < 0.6.1_1         
wget                           1.12_0 < 1.12_1           
openldap                       2.4.21_0 < 2.4.21_1       
samba3                         3.2.15_0 < 3.2.15_1       
libarchive                     2.8.3_0 < 2.8.3_1         
python26                       2.6.5_2 < 2.6.5_3         
atlas                          3.8.3_2 < 3.8.3_4         
py26-matplotlib                0.99.3_0 < 1.0.0_0        
avahi                          0.6.25_2 < 0.6.26_0       
curl                           7.21.0_0 < 7.21.0_1       
mysql5                         5.1.48_0 < 5.1.48_1       
tcpdump                        4.1.1_0 < 4.1.1_1         
winetricks                     20100618_0 < 20100618_1   
gcc44                          4.4.4_2 < 4.4.4_3         
subversion                     1.6.12_0 < 1.6.12_1       
mlt                            0.5.6_0 < 0.5.6_1         
ice-cpp                        3.4.1_0 < 3.4.1_1         
murmur                         1.2.2_0 < 1.2.2_2         
ZendFramework                  1.10.6_0 < 1.10.6_1       
python27                       2.7rc2_0 < 2.7_1  (epoch 0 < 1)  
libgda4                        4.1.6_0 < 4.1.7_0         
git-core                       1.7.1.1_0 < 1.7.1.1_1     
poppler                        0.12.4_1 < 0.14.0_1       
texlive-bin                    2009_2 < 2009_3           
eet                            1.3.2_0 < 1.3.2_1         
wine-devel                     1.2-rc6_0 < 1.2-rc6_1     
raptor                         1.4.21_0 < 1.4.21_1       
dcmtk                          3.5.4_p2_1 < 3.5.4_p2_2   
rasqal                         0.9.19_0 < 0.9.19_1       
redland                        1.0.10_3 < 1.0.10_4       
kdelibs4                       4.4.5_0 < 4.4.5_1         
qt4-mac                        4.6.3_2 < 4.6.3_3         

It would be nice to see ports in alphabetical (or, really, natural) order (i.e. perl5.8 should appear before perl5.10).

This was with the 1.9 branch @69443 on Mac OS X 10.6.4 x86_64.

Attachments (1)

patch-port.tcl.diff (521 bytes) - added by lperry (Perry Lee) 14 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 14 years ago by lperry (Perry Lee)

Added in r69534. The ports are sorted the same way as in action_installed.

Should this be left open because they aren't sorted in natural order?

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: perry@… added

Thanks! We already have natural-order sorting for versions and revisions; how hard do you think it would be to hook into that here as well?

Changed 14 years ago by lperry (Perry Lee)

Attachment: patch-port.tcl.diff added

comment:3 Changed 14 years ago by lperry (Perry Lee)

I've attached a patch that natural-order sorts ports (also affects actions_installed):

  ossp-uuid @1.6.2_0+universal (active)
  p5-compress-raw-bzip2 @2.027_0+universal (active)
  p5-compress-raw-zlib @2.027_0+universal (active)
  p5-crypt-ssleay @0.57_1+universal (active)
  p5-error @0.17016_0 (active)
  p5-html-parser @3.65_0+universal (active)
  p5-html-tagset @3.20_0 (active)
  p5-io-compress @2.027_0 (active)
  p5-libwww-perl @5.836_0 (active)
  p5-svn-simple @0.28_0 (active)
  p5-term-readkey @2.30_0+universal (active)
  p5-uri @1.54_0 (active)
  pango @1.28.0_0+no_x11+quartz+universal (active)
  par2 @0.4_2+universal (active)
  pcre @7.9_0+universal (active)
  perl5 @5.12.1_0+perl5_12 (active)
  perl5.8 @5.8.9_3+mangle_names (active)
  perl5.12 @5.12.1_0+shared+threads+universal (active)
  pinentry @0.8.0_0+universal (active)
  pkgconfig @0.25_0+universal (active)
  popt @1.15_0+universal (active)
  postgresql84 @8.4.4_1+krb5+perl+python+tcl+universal (active)
  postgresql84-server @8.4.4_0 (active)
  pth @2.0.7_0+universal (active)
  py26-beaker @1.5.3_0+universal (active)

Does the patch look okay? Or is there a much cleaner way to implement this?

comment:4 Changed 14 years ago by lperry (Perry Lee)

Resolution: fixed
Status: newclosed

Changed string compare to string equal and committed the fix in r69719.

comment:5 Changed 13 years ago by jmroot (Joshua Root)

Milestone: MacPorts Future

comment:6 Changed 13 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.0.0
Note: See TracTickets for help on using tickets.