FreeBSD Port: portmanager-0.4.1_9 - broken?

Robert Noland rnoland at 2hip.net
Thu May 3 17:26:10 PDT 2007


On Thu, 2007-05-03 at 03:32 +0530, Avinash Duduskar wrote:
> Hi,
> 
> 
> I’m getting the following error when using portmanager:
> 
> barge# /usr/local/bin/portmanager -ui
> rParseCommandLine 0.4.1_9 error: /usr/ports/-ui is not a valid port
> directory
> rParseCommandLine 0.4.1_9 info:either you have used an invalid command line
> switch as the first option or you are trying to update a non existent port
> path, see man portmanager(1)
> MGPMrCommandLine 0.4.1_9 error: rParseCommandLine returned errorCode 1
> 

Ok, so I have reviewed the code and the command line parsing is a bit
odd...  It separates options to commands and flags.  -ui is a flag,
which is not entirely obvious.  Options which seem to be interpreted as
commands are -sl, -slid, -s, -u, -v or category/port.  Other options are
treated as flags -l, -ui, --resume, etc...

So, "portmanager -u -ui" seems to do what you want.  I might break down
and rework the parsing code eventually, as I have had other complaints
about the way options are handled...

robert.




More information about the freebsd-ports mailing list