Craig Small wrote: > On Mon, Apr 07, 2008 at 11:45:46PM +0200, Sven Joachim wrote: > > I've put a few lines with 'echo "$1"' into the lprng preinst, and it > > seems that $1 gets lost after the call to check_configfile_locations; > > since that function does not do anything obviously wrong to reset the > > positional parameters, it seems debconf does something fishy here. > > > > Reassigning to debconf, > Thanks, I really did not know what was going wrong here myself. > Everything seemed to be ok except for that message.
This is not a debconf bug. check_configfile_locations() { # Source debconf scripts . /usr/share/debconf/confmodule This code contains the bug. By importing the conffmodule late, in a function, you hide the settings of $@ from it. Or potentially worse, make $@ be whatever is passed to the function. Scripts that source the debconf confmodule should do so at the very top of the script, since doing so involves starting up debconf and restarting the script inside the debconf environment. If you really want to source the confmodule in a a function, you will need to make sure that $@ are passed into the function so the confmodule can see them. But I don't recommend it. -- see shy jo
signature.asc
Description: Digital signature