[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problems with debconf scripts



Miros/law `Jubal' Baran wrote:
> I'm trying to write some configuration script using debconf, but I'm
> stuck in one moment: I got one template, that should be used multiple
> times, and I need to save some values with use of this template. It
> looks merely so:
> 
> for foo in $list_of_some_values
>   db_fset package/template isdefault true
>   db_set package/template parameter $foo

You lost me right here. (db_)set takes 2 parameters, not 3:

     * set variable value
       Ask the frontend to set a variable to a value.

I have a feeling that you are trying to use a single variable to store
multiple values. That is impossible. If you need to store multiple values,
you need to register multiple variables (see the (db_)register command in
the docs). All the variables can be based on one template, but they will
each have a separate value and separate subsititutions, etc.

-- 
see shy jo


Reply to: