[Yum-devel] [PATCH] conf.reposdir is a list

seth vidal skvidal at phy.duke.edu
Wed Jun 22 04:30:21 UTC 2005


On Tue, 2005-06-21 at 15:18 +0200, Terje Rosten wrote:
> When playing a little with the code I found this bug:
> 
> $ python config.py /etc/yum.conf
> overwrite_groups = False
> uid = 0
> errorlevel = 2
> enabled = True
>  .
>  . 
>  .
>  .
> Traceback (most recent call last):
>   File "config.py", line 785, in ?
>     main(sys.argv[1:])
>   File "config.py", line 744, in main
>     if os.path.exists(conf.installroot + '/' + reposdir):
> TypeError: cannot concatenate 'str' and 'list' objects
> 
> 
> The code in main() in yum/config.py assume conf.reposdir is a string,
> however it's a list. It's unlikely this code is much used, anyway here
> is a patch to shape it up.

Checked in, thanks!

-sv





More information about the Yum-devel mailing list