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

Re: apt.conf syntax clarification

On Fri, Dec 16, 2011 at 16:34, Dmitriy Matrosov <sgf.dma@gmail.com> wrote:
> Am i right?

Yeap, expect "List is a group of nameless options" - List is a group of
options - they CAN have names (and with these names, you can even override
list items), just read again what you quoted as [4] - it says exactly that.

Configoption not only stores a (optional) name and a (optional) value but
also other Configoptions - specifically two: The next config option on the
same level (=silbing) and the next config option one level below (=child).

This way, we build a tree of options. This tree has another interesting
attribute you haven't mentioned: The nodes are inserted in order, so they
can be retrieved in the same order which can be interesting for lists.

List, Scope and co are just describing different syntax ways to create
the same think: A configoption-tree. In the end a list is just a scope in
which you have 'forgotten' to set an explicit name. And a scope just a
way to save you a few keystrokes…

Best regards

David Kalnischkies

Reply to: