Subject: Re: CVS commit: pkgsrc/mk/bulk
To: None <jschauma@netbsd.org>
From: Adrian Portelli <adrianp@NetBSD.org>
List: pkgsrc-changes
Date: 02/20/2007 07:02:07
Jan Schaumann wrote:
> Module Name:	pkgsrc
> Committed By:	jschauma
> Date:		Tue Feb 20 06:46:20 UTC 2007
> 
> Modified Files:
> 	pkgsrc/mk/bulk: sort-packages
> 
> Log Message:
> Only invoke audit-packages if we do find the package-name prefix in
> the vulnerabilities file.  This cuts down significantly on the time
> spent running sort-packages:
> On 3228 packages before:
> 20259.43s real  9888.82s user 13138.60s system
> 
> With this change:
>  6595.97s real  3215.58s user  4265.13s system
> 
> 
> To generate a diff of this commit:
> cvs rdiff -r1.4 -r1.5 pkgsrc/mk/bulk/sort-packages
> 
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
> 

This assumes that pkg-vulnerabilities is under ${DISTFILES} which isn't
always the case.  It's probably better to refer to the location as
${PKGVULNDIR} and that way if the user has customised it sort-packages
it will still pickup the file.

adrian.