Thanks for your suggestion Jonathan.
This is actually what I am doing at the moment manually, I did not know that something like divert exist, how could I miss that? :).
Nonetheless, I would prefer that the system keeps track of replacements itself. Now I have to call dpkg-divert at pre- and postinstall to restore the original.
Is it too complicated to have a kind of automatization for divert as a feature in deb-packages?
> Date: Thu, 14 Jun 2012 15:36:10 -0500
> From: email@example.com
> To: firstname.lastname@example.org
> CC: email@example.com
> Subject: Re: Re: RFC: Proposal to combine diversions and Replaces into DEBIAN/replaces
> Sato Mayamoto wrote:
> > I host several private repositories that offer packages that contain
> > files and configurations for ubuntu clients. these files often
> > replace files of different packages, without breaking the package.
> > My problem is indeed that, once I am forced to remove the packages
> > that I installed previously from our private repositories, the
> > original packages are left broken.
> Perhaps diversions would work. :)
> Hope that helps,
> To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org
> Archive: http://lists.debian.org/[🔎] 20120614203610.GD3537@burratino