Opened 4 years ago

Closed 13 months ago

Last modified 11 months ago

#61015 closed defect (fixed)

Selectors depof: rdepof: subportof: ignore -p

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone: MacPorts 2.9.0
Component: base Version: 2.6.99
Keywords: Cc:
Port:

Description

man port says:

       -p
           Despite any errors encountered, proceed to process multiple ports and commands.

Nevertheless, it doesn't seem to do that when using the subportof: selector. For example, this works:

$ port -p info --name asdf zlib
Error: Port asdf not found
name: zlib

But this doesn't:

$ port -p info --name subportof:asdf zlib
Error: process_cmd failed: Port asdf not found

Change History (4)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: subportof: selector ignores -pSelectors depof: rdepof: subportof: ignore -p

Some other selectors have this problem too:

$ port -p info --name depof:asdf zlib
Error: process_cmd failed: Port asdf not found
$ port -p info --name rdepof:asdf zlib
Error: process_cmd failed: Port asdf not found

comment:2 Changed 13 months ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 150c99dc127804a45ace99d6d2289a0d98da1cab/macports-base (master):

get_{dep_,sub}ports: don't error if -p was used

Closes: #61015

comment:3 Changed 13 months ago by jmroot (Joshua Root)

Milestone: MacPorts Future

comment:4 Changed 11 months ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 2.9.0
Note: See TracTickets for help on using tickets.