pkg_delete and modified files

Pav Lucistnik pav at FreeBSD.org
Sat Jan 28 13:48:11 PST 2006


Andrew Pantyukhin píše v ne 29. 01. 2006 v 00:44 +0300:
> Looking for a solution to the problem we stumbled upon,
> [which was keeping many modified files without the
> cmp trick described in the porter's handbook]
> I gave pkg_install/* sources a glance and now I'm
> thinking about a quick fix. The -f flag causes files to be
> deleted even in case of a checksum mismatch. In fact
> the -f flag is meant for something slightly else:
> 
> Force removal of the package, even if a dependency
> is recorded or the deinstall or require script fails.
> 
> So I'm thinking about another flag (like -F or a second
> -f) to control the behavior with modified files. I think that
> keeping them should be a default. I can't think of a
> thing that it will break, maybe you can. The cmp trick
> will still work. And it only takes a couple of lines to
> implement.

And a couple of years before we can start using it, because it have to
get into all branches and few releases.

And it still does not solve your problem, because your port will
overwrite the files from previous installation on next upgrade.

-- 
Pav Lucistnik <pav at oook.cz>
              <pav at FreeBSD.org>

I want to earn the right to be obnoxious before I'm too bitter to really
enjoy it.
  -- Able
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Toto je =?iso-8859-2?Q?digit=E1ln=EC?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?iso-8859-2?Q?_=E8=E1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060128/d346a62c/attachment.bin


More information about the freebsd-ports mailing list