[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#146167: apt: No way to purge record of package without purging config files



On Tue, May 07, 2002 at 12:38:30PM -0500, Adam Heath wrote:
> > I realise that. That wasn't the feature I was describing. The
> > problem arises when two packages share the same config files
> > (e.g. exim and exim-tls): with both installed, it is impossible
> > to purge one and remove it from the dpkg database entirely
> > without removing the config files for the other (because they
> > are the same config files). 
> This is a dpkg problem.  I suggest you deal with it there, not for apt.

That's nifty. Policy says:

] 11.7.4. Sharing configuration files
] -----------------------------------
]      Packages which specify the same file as a `conffile' must be tagged
]      as _conflicting_ with each other. 

...but clearly that's not actually enough, since conflicts aren't taken into
account when a package is removed-but-not-purged.

Perhaps if you have a conffile <foo> mentioned by removed-but-not-purged
package <bar>, and also by newly-installed-package <baz> ownership of the
conffile should be automatically transferred to <baz> (and possibly <bar>
should "disappear" if appropriate)?

Cheers,
aj

-- 
Anthony Towns <aj@humbug.org.au> <http://azure.humbug.org.au/~aj/>
I don't speak for anyone save myself. GPG signed mail preferred.

     ``BAM! Science triumphs again!'' 
                    -- http://www.angryflower.com/vegeta.gif

Attachment: pgpeM5bpdItkH.pgp
Description: PGP signature


Reply to: