* Torsten Landschoff <[email protected]> [20090621 15:22]:
> On Sun, Jun 21, 2009 at 03:08:57PM +0200, Michael Prokop wrote:

> > It's a completely fresh installation. A basic chroot without any
> > ddclient configuration/installations so far (neither an package
> > upgrade nor any existing debconf settings present) and running
> > 'DEBIAN_FRONTEND=noninteractive apt-get -y install ddclient' then.

> Okay, so the result is no wonder as that mode of installation is not 
> currently taken into account for the maintainer scripts.

> I am not sure if it is required by policy that this installation mode 
> should work. It would surely be nice if it could cope but I am not sure
> how to implement that.

"3.9.1 Prompting in maintainer scripts"
http://www.debian.org/doc/debian-policy/ch-binary.html#s-maintscriptprompt

http://www.debian.org/doc/packaging-manuals/debconf_specification.html
says:

| Finally there is an option to simply skip all questions, so it
| becomes possible to do automatic configuration using default values
| or values that are downloaded into the database from a remote
| location.

Disclaimer: yes, this isn't *that* explicit with regards to this
issue (though IIRC there's some more specific information/policy
available somewhere, I just don't find it right now). All the >2500
packages I'm testing on a daily base work just fine and as expected
and I'm pretty sure that's the way it's supposed to work.

> Any idea how that should work out? I guess I should detect that the
> question was skipped and just pretend that the user did not want to
> run ddclient. But this way the package will look like it was configured
> while it in fact does not have a config file.

Hm, what about just assuming/taking a sane default value?
AFAIK it's just fine if users who install a package with
accepting/taking the defaults get what the package maintainer
provides as a default. For different configuration needs a
'dpkg-reconfigure ddclient' is still an option.

regards,
-mika-

Attachment: signature.asc
Description: Digital signature

Reply via email to