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

Re: lintian warning: debconf-is-not-a-registry



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, Feb 22, 2003 at 04:05:06PM +0000, Martin Orr wrote:
> I am packaging the MCBSAM package, for managing a squid proxy server.  This
> package uses configuration files which must be set up at install time, so I
> have a script /usr/sbin/mcbsam-configure which is run by my postinst to do
> the setting up.  When I run lintian on the .deb, I get the following warning:
> W: mcbsam: debconf-is-not-a-registry ./usr/sbin/mcbsam-configure
> Should I simply ignore it?
If you run lintian -i, you can read some explanation of the warning.
It says you should not use debconf calls outside of post/preinst scripts.

Info: In the Unix tradition, Debian packages should have human-readable and
 human-editable configuration files. This package uses debconf commands
 outside its maintainer scripts, which often indicates that it is taking
 configuration information directly from the debconf database. Typically,
 packages should use debconf-supplied information to generate configuration
 files, and - to avoid losing configuration information on upgrades - should
 parse these configuration files in the `config' script if it is necessary
 to ask the user for changes.
 .
 Some standalone programs may legitimately use debconf to prompt the user
 for questions. If you maintain a package containing such a program, please
 contact &maint; so that the exception would be recognized in future
 versions of Lintian. Other exceptions to this check include configuration
 scripts called from the package's post-installation script.

Cheers,
- -- 
     Bastian Kleineidam

 Atombombe · Plutonium · Fat Man · Do it Yourself · Tim Taylor
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+V6mveBwlBDLsbz4RAlbDAKC4B0QAemkEjbxNTitpcouV35jUkgCdFXy+
yNgOnCyipxG1bnfprI4ILEo=
=rBxy
-----END PGP SIGNATURE-----



Reply to: