On Sat, Jul 16, 2011 at 4:48 PM, Peter Samuelson wrote:

> It would be useful in any number of situations to be able
> to "register" a file with dpkg: tell dpkg that a given package owns a
> given file, so that it is automatically removed when the package is
> removed or upgraded.  I can see this being used in many postinst
> scripts, so as to simplify or eliminate the corresponding postrm.

I have wanted this for a long time and would use it in
clamav-unofficial-sigs if it were available. I'd want both registering
and unregistering, since clamav-unofficial-sigs might need to remove
some files. It would be used at both runtime and in maintainer
scripts.

> (It's possible that some people would want to use this capability in
> the sense that a package _upgrade_ preserves the file but package
> _removal_ removes it.  Or even that upgrade and removal both preserve
> the file, but purge removes it.  So if there are 3 desirable behaviors
> for the same basic feature, maybe that's a sign that it is a bad idea
> after all.)

I think c-u-s would need files preserved on upgrade but removed on
package removal.

-- 
bye,
pabs

http://wiki.debian.org/PaulWise


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/caktje6hrvw2bbv1u71zrge0yf4v9jpehzopp92yf4q-goug...@mail.gmail.com

Reply via email to