Date: Sun, 29 Jan 2006 00:44:50 +0300 From: Andrew Pantyukhin <infofarmer@gmail.com> To: Pav Lucistnik <pav@freebsd.org>, Kris Kennaway <kris@obsecurity.org>, FreeBSD Ports <ports@freebsd.org> Subject: pkg_delete and modified files Message-ID: <cb5206420601281344q125a691cqfdf021012fb5afea@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb5206420601281344q125a691cqfdf021012fb5afea>