From owner-cvs-all Wed Jan 12 0: 1:23 2000 Delivered-To: cvs-all@freebsd.org Received: from gndrsh.dnsmgr.net (GndRsh.dnsmgr.net [198.145.92.4]) by hub.freebsd.org (Postfix) with ESMTP id 41F3D14C3C; Wed, 12 Jan 2000 00:01:19 -0800 (PST) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.9.3/8.9.3) id AAA27467; Wed, 12 Jan 2000 00:01:05 -0800 (PST) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <200001120801.AAA27467@gndrsh.dnsmgr.net> Subject: Re: cvs commit: src/usr.sbin/pkg_install/delete perform.c In-Reply-To: <55767.947660806@axl.noc.iafrica.com> from Sheldon Hearn at "Jan 12, 2000 09:06:46 am" To: sheldonh@uunet.co.za (Sheldon Hearn) Date: Wed, 12 Jan 2000 00:01:04 -0800 (PST) Cc: jkh@zippy.cdrom.com (Jordan K. Hubbard), kris@hub.FreeBSD.ORG (Kris Kennaway), fullermd@futuresouth.com (Matthew D. Fuller), asmodai@bart.nl (Jeroen Ruigrok van der Werven), cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > > > On Tue, 11 Jan 2000 17:21:01 PST, "Jordan K. Hubbard" wrote: > > > That is to say that it should be possible to say: > > > > pkg_info '*apache*' > > pkg_delete 'emacs*' > > > > etc. And no, I don't have time to write the code which takes a regexp > > and iteratively matches it against directory components in > > /var/db/pkg, but I can certainly say that it should be easy enough to > > implement for anyone who DOES have the time. > > Well, if pkg_delete stripped off the path to a package name, you > wouldn't need to do all this work. You could just: > > pkg_delete /var/db/pkg/emacs* My patch should make that work too, as the shell does the globing: Orbit.hpc1.com:root{197}# echo /var/db/pkg/X* /var/db/pkg/XFree86-3.3.5 /var/db/pkg/XFree86-contrib-3.3.3 No, I wasn't about to run that.... thats why I just used echo to make sure that the args would be correct :-) -- Rod Grimes - KD7CAX @ CN85sl - (RWG25) rgrimes@gndrsh.dnsmgr.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message