On Sat, Jul 26, 2014 at 09:57:49AM +0100, Matthew Seaman wrote: > On 24/07/2014 18:19, Kevin Oberman wrote: > > If 'pkg version' only took a few seconds for you, I suspect you had very > > few ports installed. It has always taken minutes for me. > > > > That said, '-P' is much slower than the old default, even though it is > > doing as close as possible to the same thing. > > The reason that the -P check is slower is because it now checks not just > for the presence of the port directory, but also that the port is hooked > up to the ports tree. See > > https://github.com/freebsd/pkg/commit/2c84533f4d7291c26fe826a67217fb3c3ab446a5 > > So you've got a choice here: slow and unreliable versus even slower, but > correct. Unfortunately the only way to extract version information from > the ports involves running make(1) and that is intrinsically slow.
Am I right that it checks for the presence of a port in the <category> directory, but possible absence of the same port in the <category>/Makefile ? If yes, can this behaviour made optional ?
pgpJezo03jSdu.pgp
Description: PGP signature
