On Thu, Jul 25, 2013 at 1:35 PM, Arno Töll <a...@debian.org> wrote: > On 25.07.2013 13:25, Ondřej Surý wrote: > > Wouldn't > > > > Package: apache2 > > Replaces: apache2.2-common (<< 2.4.0) > > Breaks: apache2.2-common (<< 2.4.0) > > > > Solve the problem? > > That's what we do already (minus breaks). That allows us to overwrite > and take-over conffiles from apache2.2-common. This works nicely and > does what it is supposed to do - except in cases where people use > --purge-unused because they think that's fun. > > In that case apt[itude] decides to purge all of /etc/apache2 entirely > _before_ we have a deterministic chance to do look at the state, because > apache2.2-common is going to be removed by upgrading to 2.4. > > I am not sure if an empty 2.2-common package in addition to that would > solve that problem, as it would ship none of the conffiles either, so > consequently they would still be purged.
It's worth trying, isn't it? I think it would help, because it would get purged later in the upgrade process (when apache2 is installed and replaces the apache2.2-common). O. -- Ondřej Surý <ond...@sury.org>