Package: debconf-doc
Version: 1.4.70

This bug is against the example in section "Config file handling" in
the debconf-devel(7) man page.  The given config file is non
idempotent.

Suppose that /etc/foo.conf already exists and "apt-get upgrade" causes
a new version of the package to be installed.

During the preconfiguring phase the config script is executed.  It
reads /etc/foo.conf, stores the values into debconf db.  Then the
config script asks the questions.

In most cases no questions will be showed to the user since the user
has been asked when the previous version was installed.  Nevertheless
there are cases when some of the questions have to be showed to the
user (for example due to changed debconf priority or because the new
version of the package asks some new question).

When the time for postinst comes, the config script is executed for
second time.  It reads /etc/foo.conf, stores the values into debconf
db and wipes out the answers given by the user.

Anton Zinoviev


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to