Date: Fri, 4 Apr 2003 17:30:26 +0200 From: Robert Drehmel <robert@zoot.drehmel.com> To: robert@FreeBSD.org Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/pkg_install/version perform.c Message-ID: <20030404153026.GA26280@bsd.develop.ferrari.local> In-Reply-To: <200304041440.h34Eenq6008187@repoman.freebsd.org> References: <200304041440.h34Eenq6008187@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030404153026.GA26280>