Error: No ports matched the given expression

Rainer Müller raimue at macports.org
Sat Feb 27 11:23:59 PST 2010


On 2010-02-26 23:09 , Thomas De Contes wrote:
> i want to say : it could be a good reason, but not necessarry (what you
> seem to think),
> and concretely, i don't see any real advantages, whereas i have real
> disadvantages
> 
> 
> do you think i'm wrong ?

The upgrade action only takes valid ports as argument. This is verified
by either specifying simple port names or more complex pseudo-port
expressions. If your expression does result in an empty list, you expect
this to be an error in most cases. It doesn't matter here if your
expression was "outdated" or "name:thisportdoesnotexist", as both can
expand to an empty list and that is probably an error in the selection
specification in the most cases.

I understand that you do not expect this to be an error, but for a
general solution it is better to treat it as an error. You wouldn't
expect 'port upgrade' to report success if the specified ports do not
exist at all.

Rainer


More information about the macports-users mailing list