On Fri, May 28, 2004 at 01:09:39PM +0200, Fabio Tranchitella wrote: > Hi, I've some problems with debian/config script for my package.. I'm > not sure about when the script run. > > If I install my package with dpkg, it run once, after unpacking... > But if I install the package with apt-get, it run twice: before the > unpacking (Preconfiguring package) and after the unpacking (Configuring > package),
Correct. Once by dpkg-preconfigure and once by postinst, see debconf-devel(7). > so I have to check if conffiles have already been unpacked > before trying to modify them. [...] /Usually/ you should not _modify_ any files in the config script. - Ask the questions in the config-script and modify the files in postinst. cu andreas