Opened 18 years ago

Closed 17 years ago

Last modified 17 years ago

#10674 closed defect (fixed)

BUG: 'port list <restriction criterion>' outputs all ports if no matches found

Reported by: frank.mcpherson@… Owned by: jberry@…
Priority: Low Milestone: MacPorts 1.5
Component: base Version:
Keywords: Cc: frank.mcpherson@…, jberry@…, jmpalacios (Juan Manuel Palacios)
Port:

Description

In trying to write some scripts to help me manage old ports that I've upgraded past, I noticed this problem with 'port list'.

If I try to restrict the list somehow, for example say I'm looking for a certain maintainer:

'port list maintainer:portmgr' will only return DarwinPorts, the single port with that maintainer. However, if I search with a restriction that isn't present at all, for example I am not presently listed as a maintainer on any port, 'port list maintainer:frank.mcp' doesn't match any ports, it will return the entire list of nearly 3500 ports.

Change History (5)

comment:1 Changed 18 years ago by pipping@…

Milestone: MacPorts 1.4

comment:2 Changed 18 years ago by jmpalacios (Juan Manuel Palacios)

Milestone: MacPorts 1.4MacPorts 1.5
Owner: changed from darwinports-bugs@… to jberry@…
severity: SeriousNormal

Assigning this to James too, since he wrote the pseudo-portname searching feature. Tentatively setting it to the 1.5 milestone. What's your take on it, James?

-jmpp

comment:3 Changed 17 years ago by boeyms@…

Cc: frank.mcpherson@… jberry@… jmpp@… added

Adding reporter, assignee and jmpp to the Cc: field so that all actually receive notifications about this ticket, as documented in TracTicketing on the wiki.

comment:4 Changed 17 years ago by jberry@…

Resolution: fixed
Status: newclosed

Resolved in r25789. Added a hack that allows us to distinguish between no arguments to an action, and arguments which evalutate to the null set. This should improve the behavior of port installed, active, list, and search for these cases.

comment:5 Changed 17 years ago by nox@…

Priority: Nice to haveLow
Note: See TracTickets for help on using tickets.