[Yum-devel] Question on variable substitution/scope in yum 2.9.x config

seth vidal skvidal at linux.duke.edu
Mon Oct 2 03:53:29 UTC 2006

On Fri, 2006-09-08 at 11:56 +0300, Panu Matilainen wrote:
> Hi,
> With yum 2.4.x it used to be possible to do this (don't ask ;) :
> /etc/mydist.conf:
> distroot=http://some.host/path/to/distro/root/
> /etc/yum.repos.d/myrepo.conf:
> [myrepo]
> include=/etc/mydist.conf
> baseurl=%(distroot)s/myrepo/$basearch
> ...
> This doesn't seem to be possible in yum 2.9.x anymore for variety of 
> reasons:
> 1) mydist.conf needs to have a section specified, ok lets add [main] to
>     shut it up
> 2) %(distroot)s syntax doesn't work anymore, but ok $distroot seems to
>     be the way to go now - fine, it's much easier on the eyes that way :)
> ...but no go, the distroot variable definition from the included 
> file doesn't seem to exist in [myrepo] "namespace". If I move the distroot 
> definition to myrepo.conf $distroot works fine, but that kinda beats the 
> idea of having the distroot set in just one location :-/
> The question is, am I missing some new notation to express this, is this 
> intentional or did I find a bug?

could you check this out with the latest cvs. I think this behavior
should be restored.


More information about the Yum-devel mailing list