cvs commit: ports UPDATING
Doug Barton
dougb at FreeBSD.org
Tue Jun 9 18:34:39 UTC 2009
Wesley Shields wrote:
> The problem was not with portmaster,
That's always good news. :)
> but was with the reliance on
> pkg_which. The attached patch should fit it. I currently have sent it
> to itetcu and miwi for review. The biggest downside is that pkg_info can
> not take multiple arguments on the command line like pkg_which does, so
> we have to use xargs -L 1, which makes things slow compared to using
> pkg_which.
Have you benchmarked that? I would imagine (although I don't know for
sure) that pkg_which is just calling whatever method it uses to get
the answer once each time for each command line argument, which would
mean that they are basically equivalent.
It seems that the current solution is needlessly complicated (although
I haven't benchmarked either). What would be wrong with something like:
for file in `find <pythondir> -type f`; do
pkg_info -qW $file
done | sort -u
Doug
--
This .signature sanitized for your protection
More information about the cvs-ports
mailing list