[Yum-devel] Re: [yum-git] yum/config.py yum/yumRepo.py

Tim Lauridsen tim.lauridsen at googlemail.com
Tue Jun 3 19:01:11 UTC 2008


James Antill wrote:
> On Tue, 2008-06-03 at 04:52 -0400, Tim Lauridsen wrote:
>> yum/config.py  |   28 ++++++++++++++++++++++------
>>  yum/yumRepo.py |    8 ++------
>>  2 files changed, 24 insertions(+), 12 deletions(-)
>>
>> New commits:
>> commit 74af38c9a32b22a7652a0c56afa551a680fcef29
>> Author: Tim Lauridsen <tla at rasmil.dk>
>> Date:   Tue Jun 3 10:40:07 2008 +0200
>>
>>     make repo.enable/disablePersistant() dont messup the repo files by replacing  etc. (rhbz# 446098)
> 
>  446098: PackageKit interpolates yum config variables when modifying
> repo files
> 
>  I've confirmed that it also happens with pirut, did this always used to
> happen?
>  Amusingly it also happens within comments.
> 

It is the config PreProcessor there does the substitution of the $vars 
before the lines from the repo file goes into the ConfigParser, so the 
ConfigParser don't know about the $vars at all, so if the content is 
written back to disk, then all the $vars are gone.

Tim




More information about the Yum-devel mailing list