Re: Packaging Arbitrary Files
Hi,
On Tue, 29 Mar 2011, Russ Allbery wrote:
> 1. dpkg-divert the configuration file before replacing it with yours.
> This sort of works and sort of doesn't. dpkg doesn't deal well with
> diverted configuration files in all cases, and you'll get odd
> problems. Whether those odd problems will be significant or not for
> you is hard to say.
> 3. Have your package declare that it Replaces the package that ships the
> configuration file. This sort of works, but it's probably a bad idea,
> since upgrading the original Debian package will probably overwrite
> your package's files right back, or result in other weird changes.
For both of these points, dpkg should do the right thing nowadays. If it
doesn't you're welcome to file a bug report.
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Follow my Debian News ▶ http://RaphaelHertzog.com (English)
▶ http://RaphaelHertzog.fr (Français)
Reply to: