Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Hubert Feyrer <hubertf@netbsd.org>
List: source-changes
Date: 01/02/2001 00:07:36
Module Name:	basesrc
Committed By:	hubertf
Date:		Mon Jan  1 22:07:36 UTC 2001

Modified Files:
	basesrc/usr.sbin/pkg_install/lib: str.c

Log Message:
 * findmatchingname():
   When the bzip-pkg handling was introduced, a dewey pattern (foo>1) may get
   a character-class-pattern attached (.t[bg]z), and the code was not prepared
   to match that. I've special-cased handling of character-class pkg suffixes
   for ".t[bg]z", and when scanning a dir in findmatchingname() now both the
   'first' part of the pattern (e.g. "foo>1") and the suffix (e.g. ".t[bg]z")
   must match the file, hence the two pmatch() calls.

 * findbestmatchingname_fn():
   Caught a case where ".t[bg]z" was not properly handled. Must do the same
   suffix-processing again here!

Fixes PR 11856 by Dan McMahill <mcmahill@mit.edu>


To generate a diff of this commit:
cvs rdiff -r1.24 -r1.25 basesrc/usr.sbin/pkg_install/lib/str.c

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