On Sun, Feb 25, 2001 at 03:51:11PM -0800, Joey Hess wrote: > Brian May wrote: > > >>>>> "Joey" == Joey Hess <joeyh@debian.org> writes: > > > > Joey> No. > > > > Why not? > > A better question would be "why?" > > This is a fairly simple configuration file. It would look pretty > horrendous in xml imho. > What's horrendous about the following? <conf-file> <database name="mydb"> <driver type="text"/> <directory path="/var/lib/debconf"> </database> <database name="X"> <driver type="Text"/> <directory path="/etc/X11/debconf/"> <accept-name>xserver|xfree86|xbase</accept-name> </database <database name="company"> <driver type="SQL"/> <server name="debconf.foo.com"/> <readonly/> <user name="foo" password="bar"/> </database> <database name="dhcp"> <driver type="DHCP"> <reject-type>password</reject-type> </database> <database name="passwords"> <driver type="FlatFile"> <file path="/etc/passwords.debconf.db"/> <permissions mode="600" owner="root" group="root"/> <accept-type>password</accept-type> </database> </conf-file> That's actually more organized than your flat file. It takes advantage of dozens of tools that the sysadmin could use to edit or view it. And it means that you don't have to write your own parser. Downsides? sam th sam@uchicago.edu http://www.abisource.com/~sam/ GnuPG Key: http://www.abisource.com/~sam/key
Attachment:
pgpnnO7pt6uX3.pgp
Description: PGP signature