cvs commit: src/usr.sbin/pkg_install/version perform.c

Robert Drehmel robert at zoot.drehmel.com
Fri Apr 4 07:36:03 PST 2003


On Fri, Apr 04, 2003 at 06:40:49AM -0800, Robert Drehmel wrote:
> robert      2003/04/04 06:40:49 PST
> 
>   FreeBSD src repository
> 
>   Modified files:
>     usr.sbin/pkg_install/version perform.c 
>   Log:
>    - Print out an error message instead of dereferencing a NULL pointer
>      if matchinstalled() found no packages, which happens to be the
>      case after fresh installations.
>    - Instead of using strstr(3) to match the package name, depend on
>      matchinstalled()'s MATCH_REGEX package matching.

MATCH_REGEX is not quite correct but only used to be similar to previous
behaviour.  It think the options of pkg_version should be changed to
match those of pkg_info - at least to be able to say

 $ pkg_info pkg_name ...
 $ pkg_info -x pkg_regex

and

 $ pkg_version pkg_name ...
 $ pkg_version -x pkg_regex

Comments?

ciao,
-robert


More information about the cvs-all mailing list