[MacPorts] #63451: `port search --variant` doesn't find all matching ports

MacPorts noreply at macports.org
Sun Sep 5 08:35:17 UTC 2021


#63451: `port search --variant` doesn't find all matching ports
-----------------------------------+--------------------
 Reporter:  ShadSterling           |      Owner:  (none)
     Type:  defect                 |     Status:  new
 Priority:  Normal                 |  Milestone:
Component:  base                   |    Version:  2.7.1
 Keywords:  search variants regex  |       Port:
-----------------------------------+--------------------
 I noticed this while working on my script to find ports with version
 numbers in their names so I can ensure everything's up-to-date.  I'm
 trying to add finding ports with variants that specify a specific version
 of a dependency, such as "nodejs12"

 `port search --line --variant --regex '^nodejs\d+$'` should find at least
 bamtools, but finds nothing

 `port search --line --variant --regex '^nodejs$'` should find at least
 thrift, but finds nothing

 `port search --line --variant --exact nodejs` should find at least thrift,
 but finds nothing

 Even the example from the documentation
 (https://guide.macports.org/chunked/using.html#using.port.search),
 modified to look for variants, fails:

 `port search --variant --line --regex '^php\d*$'` should find at least
 dokuwiki, but finds nothing

-- 
Ticket URL: <https://trac.macports.org/ticket/63451>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list