Bug#368411: tex-common keeps asking the question about group on each upgrade
Norbert Preining <preining@logic.at> wrote:
> Suggest solution, but I may be wrong (doesn't debconf check the seen
> flag by itself???) but thedebconf debug shows:
> ...
> debconf (developer): <-- INPUT medium tex-common/groupname_multi
> debconf (developer): --> 0 question will be asked
> debconf (developer): <-- GO
> ...
> evn after the third try of dpkg-reconfigure tex-common.
That's the point of dpkg-*re*configure: It always shows all questions,
regardless of their seen flag. The flag is only honored when invoked by
dpkg upon installation/upgrade.
> # The groupname question has been split up, but it need not be shown again
> db_fget tex-common/groupname seen || true
> -if [ "$RET" = true ]; then
> +RETA="$RET"
> +db_fget tex-common/groupname_single seen || true
> +RETB="$RET"
> +db_fget tex-common/groupname_multi seen || true
> +RETC="$RET"
> +if [ "$RETA" = true ] || [ "$RETB" = true ] || [ "$RETC" = true ] ; then
> db_fset tex-common/groupname_single seen true || true
> db_fset tex-common/groupname_multi seen true || true
> fi
Hm. If the system was previously autodetected as being single-user, and
is now detected as multi-user (or the other way round), doesn't it make
sense to show the question again? The new multi-user setup might
require a different groupname.
Regards, Frank
--
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX)
Reply to: