Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jul 1996 14:28:09 -0700
From:      "Jordan K. Hubbard" <jkh@time.cdrom.com>
To:        Stefan Esser <se@ZPR.Uni-Koeln.DE>
Cc:        asami@cs.berkeley.edu (Satoshi Asami), stesin@elvisti.kiev.ua, andreas@klemm.gtn.com, jhs@freebsd.org, ports@freebsd.org
Subject:   Re: print/gs4 
Message-ID:  <20658.838416489@time.cdrom.com>
In-Reply-To: Your message of "Fri, 26 Jul 1996 23:07:05 %2B0200." <199607262107.XAA00493@x14.mi.uni-koeln.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
> No, I meant:
> 
> 1) No flag: Delete any file from the package 
>    only if no single file failed the test.
> 
> 2) With -f: Delete all files that do still 
>    match their original MD5 and complain 
>    about the rest, leaving a chance to copy
>    them to a safe plce before the install of
>    a new version overwrites a customized file.
>  
> 3) With -F: Delete all files, no questions 
>    asked :)

Hmmmm.  I don't know, I've thought more about this since we first
started talking about it and am now thinking that maybe we *should*
support reversion (in case pkg y+1 doesn't work), not just overlays,
and in which case a much different approach to this problem is taken.

More on this later, after I actually have some code to show you.

> A simple 
> 
>   cat /var/db/pkg/*/+CONTENTS | grep -v "^@" | sort | uniq -d
> 
> generates a list of files used by more than one 
> package. (Well, you could get more fancy then that, 

Not really, since it doesn't notice "synthetic" files created by
@exec commands and such.  You really *have* to get more fancy
than that to do it right. ;-)

> Yes. I guess this is best done by having two
> names for each package. One long name with the
> version, and one "Class" name, that is valid 

Bleah!  Never! :-)

I have something better than this in mind.  Again, more on this once I
have some working code to show you.

> I did never like the fact, that I had to know
> the exact release name for a package I was going 
> to delete. This does always require a lookup of

I agree, that's always been bogus.

> It should suffice top say "pkg_delete bash" for 
> example to remove the package "bash-1.14.6" (or
> was it bash-1.14-6 :-) ...

Yup!  And it will, it will.. :-)

					Jordan



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