Peter Tribble wrote:
On Mon, Dec 14, 2009 at 12:02 AM, Shawn Walker <[email protected]> wrote:
And sorry, but you're complaining about .64 seconds?  Seriously?

Absolutely. Do that multiple times across hundreds of servers and it
becomes considerable. The conclusion is that you;ll avoid using pkg
to determine whether a package is installed, but end up using some
other mechanism, like checking for a file you hope will always be in
the package.

If you can actually demonstrate that as an issue, you might be onto something. But trying to optimise for hypothetical situations doesn't seem beneficial.

As I also mentioned before, you don't have to query for one package at a time. If you actually wanted to check the status of multiple packages, just use:

pkg list

...and pipe the output to grep. That avoids the overhead of interpreter startup time, etc.

--
Shawn Walker
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to