Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#20697 closed defect (invalid)

"port list" shows the latest version of a package as the version for all installed instances

Reported by: n2185x@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.7.1
Keywords: Cc: nerdling (Jeremy Lavergne)
Port:

Description

Port in the "list" command shows only the latest version (possibly the latest installed version, if the latest repository version is different) of any given package as the version associated with all installed instances of that package. See the below transcript for proof:

root@kevin-browns-macbook:~# ls /opt/local/var/macports/software/openssl/
0.9.8g_0        0.9.8k_0
root@kevin-browns-macbook:~# port list inactive | grep openssl
openssl                        @0.9.8k         devel/openssl
root@kevin-browns-macbook:~# port list active | grep openssl
openssl                        @0.9.8k         devel/openssl
root@kevin-browns-macbook:~# port deactivate openssl
--->  Deactivating openssl
root@kevin-browns-macbook:~# port activate openssl@0.9.8g_0
--->  Activating openssl @0.9.8g_0
root@kevin-browns-macbook:~# port list inactive | grep openssl
openssl                        @0.9.8k         devel/openssl
root@kevin-browns-macbook:~# port list active | grep openssl
openssl                        @0.9.8k         devel/openssl
root@kevin-browns-macbook:~# port list installed | grep openssl
openssl                        @0.9.8k         devel/openssl
openssl                        @0.9.8k         devel/openssl
root@kevin-browns-macbook:~#                 

This is with the (as of now) latest version of port available via selfupdate:

root@kevin-browns-macbook:~# port selfupdate

MacPorts base version 1.710 installed
Downloaded MacPorts base version 1.710

The MacPorts installation is not outdated so it was not updated
root@kevin-browns-macbook:~#

Needless to say, this defect makes it much more difficult to manage active versus inactive ports. Please fix it, or tell me how I can figure out why it's busted on my system.

Change History (5)

comment:1 Changed 15 years ago by n2185x@…

Cc: n2185x@… added

Cc Me!

comment:2 Changed 15 years ago by nerdling (Jeremy Lavergne)

That looks like the epoch of that port was increased (epoch comes before version which comes before revision). 0_0.9.8k_2 versus 1_0.9.8k_0.

comment:3 Changed 15 years ago by nerdling (Jeremy Lavergne)

Cc: snc@… added; n2185x@… removed
Priority: HighNormal

comment:4 Changed 15 years ago by blb@…

Component: portsbase
Resolution: invalid
Status: newclosed

That's how 'port list' works, you want to use 'port installed' instead (which can also be used with 'inactive' etc).

comment:5 Changed 15 years ago by n2185x@…

Aha. You're right. "port installed" gets the right thing.

My apologies for wasting everyone's time. I feel like an idiot...

Note: See TracTickets for help on using tickets.