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

2008-06-23 Thread Frans Pop
On Thursday 19 June 2008, Joey Hess wrote: Even that could diverge slightly from debconf: If two questions are to be asked, the second is a noninteractive select, and the user backs up from the first, debconf will not change the value of the noninteractive select, while cdebconf would. (It

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

2008-06-23 Thread Joey Hess
Frans Pop wrote: Question: what does debconf do if there has never been a db_input? I.e. if you do just 'db_subst' directly followed by 'db_get'. In this case behavior of debconf and cdebconf are the same, you'll get the Default, and if there's no Default, you'll get . Similarly, you can

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

2008-06-19 Thread Frans Pop
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: