Author: Olaf Meeuwissen Date: To: g4sra CC: dng Subject: Re: [DNG] DEB822 format for sources.list
Hi,
g4sra via Dng <dng@???> writes:
> [[PGP Signed Part:Undecided]]
>
>> A a description of the problems that it solved.
>
> Don't believe the hype.
Very true. >
>> "Problems with the One-Line-Style Format begin when parsing
>> entries via machine. Traditional, optionless entries are
>> relatively simple to parse, as each different portion of the
>> entry is separated with a space. With options, however, this is
>> no longer the case. The presence of options causes there to be
>> no, 1, or multiple segments of configuration between the type
>> declaration and the URI. Additionally, APT sources support a
>> variety of URI schemas, with the capability for extensions to add
>> additional schemas on certain configurations. Thus, supporting
>> modern, optioned One-Line-Style Format source entries requires
>> use of either regular expressions or multi-level parsing in order
>> to adequately parse the entry. Further compounding this support
>> is the fact that One-Line-Style Format entries can have one or
>> more components, preventing parsing of sources backwards from the
>> end towards the front.
>
> Read the above thoughtfully, regular expressions or multi-level
> parsing has been the cornerstone of *nix Os'es for decades, that
> already exists in abundance.
>
> What they have ommitted to say is...
>
> "It is pure coincidence that this resembles the schema used by SystemD
> and we have absolutely no intention of integrating package management
> and updates into SystemD with minimal effort on our part and use the
> configuration file parser we have already written".
FYI, the systemd configuration uses a .ini style format
[Section]
Key1=Value1
Key2=Value2
which is *very* different from the mail header inspired DEB822 format
for APT sources and, incidentally, *very* similar to the format used in
deb/control files and the content for Packages et al.
In case you didn't notice, the 822 in DEB822 refers to RFC-822 which is
the first, IIRC, RFC that defines the venerable mail headers format.
I have no qualms about bad-mouthing systemd but, please, get your facts
straight.
BTW, I stand to be corrected on the above ;-P
--
Olaf Meeuwissen