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."

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to