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

Re: Linuxconf



On Tue, 2 Jun 1998, Jules Bean wrote:

> >> So support the full grammar of the file.
> > 
> > debian currently has 1956 packages. most of them require a config file.
> > do you think having that many individual parsers is viable?
> 
> Ooh.. debian has 1956 packages.  Do you think having that many postrm
> scripts is viable?

postinst scripts are rarely anywhere near as complicated as a config
file parser. 

the majority of packages don't even have any {pre,post}{rm,inst}
scripts, and most of those that do don't do anything particularly
complicated.


> Of course it's viable.  It just becomes a package maintainer
> responsibility.  In the vast majority of cases, the package maintainer
> ought to be able to use the *same code* as the package itself for
> parsing config files.
>
> In many well factored cases, this will be as simple as extracting
> config.c or some similarly named file from the distribution and making
> a few changes to it.

no, it's not that simple.

it needs to read and parse the config file, allow the user to manipulate
it, and then write it back out again (if the user chooses to save any
changes) WITHOUT losing any information, including comments and the
order of the comments.


craig

--
craig sanders


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: