Re: Problems with 'port upgrade' in DP 1.32

Artemio Gonzalez Lopez <[email protected]> Thu, 31 Aug 2006 15:54:08 +0200
Newsgroups gmane.os.opendarwin.darwinports
Message-ID <[email protected]>
On Aug 30, 2006, at 3:39 PM, Daniel J. Luke wrote:

> On Aug 30, 2006, at 5:53 AM, Artemio Gonzalez Lopez wrote:
>> After updating (via port selfupdate) to DP 1.32, I tried to  
>> upgrade all my active ports in need of upgrading as I always do with
>>
>> port -vuf upgrade active
>
> you want port upgrade outdated
>
> (port upgrade active with -f will force it to upgrade all your  
> installed ports and all their dependencies, iirc).

Thanks, that was it! What got me confused was that 1) formerly, 'port  
upgrade active' only upgraded active ports _in need of upgrading_, 2)  
the following lines in 'man port':

"To upgrade all installed ports:

            port upgrade installed",

which seem to suggest that the old behavior is still valid, and 3) if  
you run 'port upgrade outdated' when there are no ports in need of  
upgrading, you get the following message:

Can't map the URL 'file://.' to a port description file (Could not  
find Portfile in .). Please verify that the directory and portfile  
syntax are correct.
Error: To use the current port, you must be in a port's directory
Error: No port  found.

which seems to suggest that the target "outdated" doesn't work with  
'port upgrade'. Perhaps the documentation should be corrected to  
clarify point 2), and the cryptic error message in 3) should  
certainly be changed by something more understandable, like "No  
(active | installed | etc.) ports need upgrading".

Thanks a lot again,

Artemio