users confusing selfupdate and sync

Jeremy Lavergne jeremy at lavergne.gotdns.org
Thu Oct 15 15:31:50 PDT 2009


> I have my own little shell script that does (amongst other things)
>
> sudo port -v selfupdate
> sudo port outdated
> #sudo port upgrade outdated
> #sudo port uninstall -f inactive
> echo All Done
>
> The commented lines are because a few versions of Macports ago, if  
> you tried
> sudo port upgrade outdated
> and "outdated" was nothing, ie nothing needed upgrading, then there  
> was a very confusing error message.
>
> But I've just tried it in 1.8.1 and although it could be slightly  
> better it's not as bad as it once was.
>
> iMac:~ $ sudo port upgrade outdated
> Error: No ports matched the given expression
>
> "There are no upgrades available in MacPorts for your installed  
> ports."
> is perhaps a clearer message for users in this case.

This happens because the expansion of commands is done right to left.   
We don't know that we're upgrading until after we've tried to match  
"outdated."

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4024 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20091015/b2668c6d/attachment.bin>


More information about the macports-dev mailing list