[Pkg-jed-commit] r479 - jed/trunk/debian

Rafael Laboissiere rafael at debian.org
Thu Jan 11 13:40:56 CET 2007


* Rafael Laboissiere <rafael at debian.org> [2007-01-10 16:15]:

> * Jörg Sommer <joerg at alea.gnuu.de> [2007-01-10 11:43]:
> 
> > I think you can't be sure the config script is run. IMO apt-get runs the
> > config file only if apt-utils is installed and this is not mandatory.
> 
> The config script runs perfectly in my unstable chroot with apt-utils
> removed.

I just noticed that the question is asked twice when the apt-utils package
is installed.  This happens because dpkg calls the config script at
pre-configure time (only when apt-utils is installed) and again at postinst
time.  Since the "seen" flag is set to "false", the question is asked twice
when installing the package.

After thinking a lot about this, I decided to let the script as it is.  This
script concerns an extremely border-line case, in which the user has
modified one of the /etc/jed-init.d/ distributed files.  If there are no
changes, the config script will delete the files silently (no debconf
question will be asked).  Notice that when the user answers "yes" once, all
files will be deleted and the question will never be asked again (unless the
user restore the changed files in /etc/jed-init.d, which should not happen).

-- 
Rafael



More information about the Pkg-jed-devel mailing list