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

Re: Does dpkg-divert work on conf files?

Josip Rodin wrote:
> On Wed, Mar 01, 2000 at 11:49:27PM +1100, Martijn van Oosterhout wrote:
> > The packaging manual doesn't say and the man pages doesn't
> > say either way either.
> I see no reason why not.

Hmm, OK.

> > The reason I ask is that conf files are unpacked as conffile.dpkg-dist but
> > the diversion only (AFAIK) redirects conffile by itself.
> Um, can you explain this?

Well, when a conffile is unpacked it goes to conffile.dpkg-dist. 
Then it decides whether or not to replace the existing config
file, and if so move the old one to conffile.dpkg-old and the
new one to conffile.

If I dpkg-divert /etc/package.conf to /random/path/package.conf,
when the new conffile is unpacked, does it go to 
/random/path/package.conf.dpkg-dist and replace the one there?

Hope I'm making sense here.

Martijn van Oosterhout <kleptog@cupid.suninternet.com>

Trust the computer industry to shorten "Year 2000" to Y2K.
It was this kind of thinking that caused the problem in the first place.

Reply to: