Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#14411 closed defect (fixed)

running port upgrade outdated installs the port in the current directory

Reported by: skymoo (Adam Mercer) Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.7.0
Component: base Version: 1.6.0
Keywords: Cc: jmroot (Joshua Root)
Port:

Description

I was upgrading outdated ports on my system and I noticed the following strange behaviour, if you run "port upgraded outdated" in a directory that contains a Portfile that is not installed, port upgrade outdated will install that port:

[ram@skymoo ~]$ port installed p7zip
None of the specified ports are installed.
[ram@skymoo ~]$ cd `port dir p7zip`
[ram@skymoo p7zip]$ sudo port upgrade outdated
--->  Fetching p7zip
--->  Attempting to fetch p7zip_4.57_src_all.tar.bz2 from http://downloads.sourceforge.net/p7zip
--->  Verifying checksum(s) for p7zip
--->  Extracting p7zip
--->  Applying patches to p7zip
--->  Configuring p7zip
--->  Building p7zip with target all
--->  Staging p7zip into destroot
--->  Installing p7zip 4.57_1
--->  Activating p7zip 4.57_1
--->  Cleaning p7zip
[ram@skymoo p7zip]$ 

Change History (5)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Cc: jmr@… added

Can't reproduce this with current trunk. I get "Error: No ports found". Does the set of outdated ports have to be non-empty for this to happen?

comment:2 Changed 16 years ago by jmroot (Joshua Root)

Cc: jmr@… added; jmr@… removed

(Oops, darn autocomplete...)

comment:3 Changed 16 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

I already fixed this in trunk with r34546.

The behavior was that if outdated did not expand to any ports, it used the current pseudo-port instead. Now it prints just a message that no ports were given.

comment:4 Changed 16 years ago by tobypeterson

Milestone: MacPorts base bugsMacPorts Future

Milestone MacPorts base bugs deleted

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

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