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

Bug#486892: different behavior from debconf when noninteractively asking a select question with a default not in the select list



This bug is even more severe than it first looked. The Choices list is
completely ignored by cdebconf when a db_get is done immediately after a
db_subst that sets a variable used in Choices (or with a db_input in
between that gets skipped because of priority).

From a trace in #486558:

debconf: --> SUBST mirror/http/mirror mirrors ftp.us.debian.org, ftp.egr.msu.edu, [...]
debconf: Adding [mirrors] -> [ftp.us.debian.org, ftp.egr.msu.edu, mirrors.kernel.org, [...]
debconf: rfc822db_question_set(db,q=mirror/http/mirror,q=0x8076ed8)
debconf: <-- 0
debconf: --> INPUT high mirror/http/mirror
debconf: Comparing priorities high (2) with critical (3)
debconf: <-- 30 question skipped
debconf: --> GO
debconf: <-- 0 ok
[...]
debconf: --> GET mirror/http/mirror
debconf: <-- 0

I tried if displaying the question but not confirming an answer (by
backing up when the question is displayed) helped, but that does not
change anything.

From template.dat:
Name: mirror/http/mirror
Type: select
Choices: ${mirrors}
Description: [...]

From questions.dat:
Name: mirror/http/mirror
Template: mirror/http/mirror
Owners: d-i
Variables:
 mirrors = ftp.us.debian.org, [...]



Reply to: