Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jan 2000 10:37:35 -0800 (PST)
From:      "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net>
To:        nathan@rtfm.net (Nathan Dorfman)
Cc:        kris@hub.freebsd.org (Kris Kennaway), fullermd@futuresouth.com (Matthew D. Fuller), jkh@zippy.cdrom.com (Jordan K. Hubbard), asmodai@bart.nl (Jeroen Ruigrok van der Werven), cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/usr.sbin/pkg_install/delete perform.c
Message-ID:  <200001121837.KAA29133@gndrsh.dnsmgr.net>
In-Reply-To: <20000112131941.A27482@rtfm.net> from Nathan Dorfman at "Jan 12, 2000 01:19:41 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> On Tue, Jan 11, 2000 at 05:09:06PM -0800, Kris Kennaway wrote:
> > On Tue, 11 Jan 2000, 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
> > > completion?  Some of those package names are rather convulted and painful
> > > to type.  Was there ever a 'yes' or 'no' decision on that, or is it just
> > > waiting for someone to write patches (yes, maybe I am offering...)?
> > 
> > I'd love this to work :-)
> 
> How about just specifying the package and having pkg_delete (or pkg_info
> for that matter) fill in the missing version number itself?
> 
> pkg_delete foo
> instead of
> pkg_delete foo-1.2.4b33-blah
> 
> If more than one version of foo is installed it is possible to either
> delete all of them or print them all to stderr and stop (perhaps selectable
> with a command-line option). I suppose I'm willing to submit a patch if
> someone is willing to commit it.

Actually a better modification is to stop using the version of the
name of the directory all togeather and store it inside the directory,
one thing this would fix is installing over the top of an existing
port with a newer port and then pkg_delete of the older port leaving
you screwed up.  Or not pkg_delete the old port and leaving cruft/wrong
files around.


-- 
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




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