Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jan 2000 13:27:26 -0500
From:      Nathan Dorfman <nathan@rtfm.net>
To:        "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net>
Cc:        obrien@FreeBSD.ORG, "Matthew D. Fuller" <fullermd@futuresouth.com>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/usr.sbin/pkg_install/delete perform.c
Message-ID:  <20000112132726.B27482@rtfm.net>
In-Reply-To: <200001120759.XAA27450@gndrsh.dnsmgr.net>; from Rodney W. Grimes on Tue, Jan 11, 2000 at 11:59:27PM -0800
References:  <20000111230829.A86450@dragon.nuxi.com> <200001120759.XAA27450@gndrsh.dnsmgr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 11, 2000 at 11:59:27PM -0800, Rodney W. Grimes wrote:
> > On Tue, Jan 11, 2000 at 06:45:45PM -0600, Matthew D. Fuller wrote:
> > > Wasn't there a discussion some time ago about making pkg_delete accept a
> > > '/var/db/pkg/package-name-version' argument to allow use of filename
> > 
> > Use a script:
> > 
> > #!/bin/sh -
> > OPTS=""
> > while :
> 
> Blehh... use a real patch:
> (This fixes two things, it rips all trailing slashes off of
> the package name, not just the last one since some one asked
> for that, and it will take full paths to the package, ripping
> off the path portion that matches /var/db/pkg (or what is
> in env(PKG_DBDIR)).

Instead of applying basename(1) logic to the tools, why not just let
the user specify a package name sans version? Another command-line
option can let the user select whether to rip all matching packages
out or just print them and error out.

> -- 
> Rod Grimes - KD7CAX @ CN85sl - (RWG25)               rgrimes@gndrsh.dnsmgr.net

-- 
Nathan Dorfman <nathan@rtfm.net>         The statements and opinions in my
Unix Admin @ Frontline Communications    public posts are mine, not FCC's.
"The light at the end of the tunnel is the headlight of an approaching
train." --/usr/games/fortune


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000112132726.B27482>