Smart config file parsing

Grant McWilliams grantmasterflash at gmail.com
Thu Jun 12 14:02:47 PDT 2008


>
>
> Grant McWilliams wrote:
>
> > So this wouldn't help in getting us closer to this
> >
> > mirrorlist=
> >
> http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
> >
> > or is it just not the best way of doing it? I'm sure variables could be
> > accomodated for without ConfigParser.
>
> You don't need variables.  Think about it:  when was the last time you
> needed to alter those values ($releasever and $basearch) on an
> existing system?
>
> The only real reason to use variables there is so that the config file
> itself can pass between systems, which is really a case of
> poor/improper management and/or lazy packaging.
>
> Those "variables" should be set by the package at build/install time
> and left alone.
>
> Michael
>

And when CentOS goes from 5.0 to 5.1 to 5.2 do I go to all 100 machines and
change the URL lines for each baseurl and mirrors or do I just go with the
variables set by centos-release (or wherever Yum get's them)?

Grant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.labix.org/pipermail/smart-labix.org/attachments/20080612/e603af34/attachment-0003.htm>


More information about the Smart mailing list