Fix product.name.lower() in RuntimeBuilder changing TreeBuilder

Let RuntimeBuilder use a copy of the 'product' object instead.
This commit is contained in:
Will Woods 2011-06-24 13:11:15 -04:00
parent 796e0ee45f
commit 30ac2e9aa5

View File

@ -89,6 +89,7 @@ class RuntimeBuilder(object):
'''Builds the anaconda runtime image.'''
def __init__(self, product, arch, yum, templatedir=None):
root = yum.conf.installroot
product = product.copy()
product.name = product.name.lower()
v = DataHolder(arch=arch, product=product, yum=yum, root=root,
basearch=arch.basearch, libdir=arch.libdir,