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

Re: Some debconf questions

Frank Küster wrote:
> - If a debconf question is manipulated by db_set, does that affect its
>   "seen" flag? And if it does, does it take effect immediately (i.e.,
>   also for a following db_inut ...), or only in the next run of the
>   config file?

No, you would have to use FSET to manipulate a flag. And all changes
take effect immediatly.

> - If I set a debconf question's seen flag to "false" with db_fset, it
>   will still be set to "true" again if the question is then asked to the
>   user - no need to revert manually? I would be very surprised if this
>   wasn't so, but someone else was in doubt.

That's correct.

> - What do I have to do to set up a test environment? I have created a
>   ~/.debconfrc and defined my testing database there, I have copied part
>   of the main database to it (as root), using debconf-copydb. However,
>   the templates file hasn't been copied, and I get an error message:
> alhambra:~# debconf-copydb configdb frankdb --pattern='^tetex' \
>              --config=Name:frankdb --config=Driver:File \
>              --config=Filename:/home/frank/.debconf/config.dat
> alhambra:~# chown frank:frank /home/frank/.debconf/config.dat 
> frank@alhambra:~$ egrep -v '^#|^$' .debconfrc | head -7
> Config: frankdb
> Templates: frankdb
> Name: config
> Driver: File
> Mode: 644
> Reject-Type: password
> Filename: ~/.debconf/config.dat
> frank@alhambra:~$ debconf-show tetex-base
> debconf: DbDriver "config": could not open ~/.debconf/config.dat
> frank@alhambra:~$ 

Debconf does not understand ~ for home in .debconfrc. Try using
environment variable expansions: ${HOME}

see shy jo

Attachment: pgpCzQhJ1y5lG.pgp
Description: PGP signature

Reply to: