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

Re: question on conffiles



On Thu, Dec 14, 2000 at 11:20:02PM +0800, Zhao Wei <zw@debian.org> spake forth:
> As read from packaging-manual, there're two ways to handle
> system specific config files, one to list them in debian/conffiles,
> the other is (optionally write a /usr/bin/pkgxxxconfig to aid) to
> write/modify the config file in debian/postinst, and don't list them
> in debian/conffiles. My question is with the second approach, how could
> dpkg determine if a /etc/pkgxxx.cfg belongs to pkgxxx? What if other
> package wants to overwrite it accidentally?

That's why conffiles is better in most cases :). dpkg can't know if a file's
created in postinst, so it's best to do that only if necessary (at least
IMO)...

-- 
Mike Markley <mike@markley.org>
PGP: 0xA9592D4D 62 A7 11 E2 23 AD 4F 57  27 05 1A 76 56 92 D5 F6
GPG: 0x3B047084 7FC7 0DC0 EF31 DF83 7313  FE2B 77A8 F36A 3B04 7084

"What am I, a doctor or a moonshuttle conductor?"
- Dr. McCoy, "The Corbomite Maneuver", when Kirk rushed off from a physical
  exam to answer the alert.



Reply to: