Subject: CVS commit: pkgsrc/pkgtools/pkglint
To: None <pkgsrc-changes@NetBSD.org>
From: Stoned Elipot <seb@netbsd.org>
List: pkgsrc-changes
Date: 09/05/2004 23:12:39
Module Name:	pkgsrc
Committed By:	seb
Date:		Sun Sep  5 23:12:39 UTC 2004

Modified Files:
	pkgsrc/pkgtools/pkglint: Makefile
	pkgsrc/pkgtools/pkglint/files: lintpkgsrc.pl

Log Message:
Update to version 3.90. Lintpkgsrc package version comparison bug fix.

When comparing two version numbers vector the shorter one needs to be
extended with 0. Cf. src/usr.sbin/pkg_install/lib/str.c:vtest().

Previously lintpkgsrc considered that 'png-1.2.6', which version vector is
[1,0,2,0,6], is "less" than 'png-1.2.6rc1', which version vector is
[1,0,2,0,6,-1,1]. No wonder lintpksrc -V considered the package png-1.2.6
being vulnerable wrt the 'png<1.2.6rc1' entry in pkg-vulnerabilities files.

While here teach lintpkgsrc about the 'alpha' and 'beta' version elements.


To generate a diff of this commit:
cvs rdiff -r1.202 -r1.203 pkgsrc/pkgtools/pkglint/Makefile
cvs rdiff -r1.92 -r1.93 pkgsrc/pkgtools/pkglint/files/lintpkgsrc.pl

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.