From owner-cvs-all Wed Jan 12 10:26:35 2000 Delivered-To: cvs-all@freebsd.org Received: from eterna.binary.net (eterna.binary.net [12.13.84.6]) by hub.freebsd.org (Postfix) with ESMTP id 176CE15566; Wed, 12 Jan 2000 10:26:27 -0800 (PST) (envelope-from nathan@rtfm.net) Received: from matrix.binary.net (root@matrix.binary.net [12.13.120.2]) by eterna.binary.net (8.9.1a/8.9.1) with ESMTP id MAA19412; Wed, 12 Jan 2000 12:26:24 -0600 (CST) Received: (from nathan@localhost) by matrix.binary.net (8.9.3/8.9.1) id MAA27826; Wed, 12 Jan 2000 12:27:26 -0600 (CST) Date: Wed, 12 Jan 2000 13:27:26 -0500 From: Nathan Dorfman To: "Rodney W. Grimes" Cc: obrien@FreeBSD.ORG, "Matthew D. Fuller" , 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> References: <20000111230829.A86450@dragon.nuxi.com> <200001120759.XAA27450@gndrsh.dnsmgr.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <200001120759.XAA27450@gndrsh.dnsmgr.net>; from Rodney W. Grimes on Tue, Jan 11, 2000 at 11:59:27PM -0800 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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 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