[Debconf-devel] Debconf - adding "treeselect" type(s)?

Steve McIntyre steve at einval.com
Thu Dec 3 00:48:17 GMT 2020


Thomas Goirand wrote:
>On 11/29/20 11:37 PM, Timo Weingärtner wrote:
>> 
>> Would checking "a" automatically also check "a/*"?
>> Is it only about UI, meaning "a/*" would be collapsed under "a"?
>> Shall it be possible to check "a", but uncheck "a/b"?
>> 
>> Grüße
>> Timo
>
>I very much agree that this needs to be discussed, then specified correctly.

I think I've been clear on this bit in the thread? What's missing?

>Also, would that sound crazy if we were to introduce the tree as
>described with json? That's simple enough, so that even a human can do
>it by hand, and also understood by all languages.

json is all well and good for more powerful languages (and yes, I'd be
convinced there!), but nigh-on impossible to do reliably in shell
AFAICS. Shell is (one of) the most common environments for driving
debconf, in package config and postinst scripts. I don't think that's
going to fly.

Oh, except... We'd only have to generate the json from shell, not
parse it. That may be more tractable. Thanks, that could be a good
suggestion!

>Otherwise, what would be the way to describe a tree?

I'm playing with ideas so far, let's see shortly. :-)

-- 
Steve McIntyre, Cambridge, UK.                                steve at einval.com
"You can't barbecue lettuce!" -- Ellie Crane



More information about the Debconf-devel mailing list