Smart config file parsing

Grant McWilliams grantmasterflash at gmail.com
Thu Jun 12 15:12:59 PDT 2008


On Thu, Jun 12, 2008 at 2:57 PM, Michael Jennings <mej at kainx.org> wrote:

> On Thursday, 12 June 2008, at 14:02:47 (-0700),
> Grant McWilliams wrote:
>
> > 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)?
>
> Do you do that now?  No.  Why not?  Because $releasever is "5" and not
> "5.0" or "5.1."  And that value doesn't change.  Your installs still
> roll gracefully from version to version due to the magical moving of a
> symlink on the repository server.  It has nothing whatsoever to do
> with $releasever changing.
>
> It would work exactly the same way with smart.  The only real
> difference is that smart doesn't have to query the version of a
> package every time it runs to obtain a value that never changes.
>
> Michael
>
>
I did notice the repository does this but that brings up the question as to
why Yum uses variables so much. Does it query each package for $releasever
and $arch and $basearch each time it installs something or does an update? I
really don't know so that's a question but I'd have a hard time believing
it's doing this for every package in all repos every time you want to
update. If it is then I haven't given the YUM folks enough credit because
it's screaming...

So I guess the question (to everyone) is this - does Smart need variables in
the URLs. Maybe I don't understand why YUM has them. I tend to believe that
most things are done for a reason but maybe it's unnecessary.


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


More information about the Smart mailing list