Don't use our own yum cache

This commit is contained in:
Martin Gracik 2010-02-25 18:54:43 +01:00
parent a3d550952a
commit 0accac20a7

View File

@ -44,17 +44,17 @@ def get_yum_base_object(installroot, repositories, mirrorlists=[],
repositories = filter(bool, repositories) repositories = filter(bool, repositories)
mirrorlists = filter(bool, mirrorlists) mirrorlists = filter(bool, mirrorlists)
cachedir = os.path.join(tempdir, "yum.cache") #cachedir = os.path.join(tempdir, "yum.cache")
if not os.path.isdir(cachedir): #if not os.path.isdir(cachedir):
os.mkdir(cachedir) # os.mkdir(cachedir)
yumconf = os.path.join(tempdir, "yum.conf") yumconf = os.path.join(tempdir, "yum.conf")
c = ConfigParser.ConfigParser() c = ConfigParser.ConfigParser()
# add the main section # add the main section
section = "main" section = "main"
data = {"cachedir": cachedir, data = {#"cachedir": cachedir,
"keepcache": 0, #"keepcache": 0,
"gpgcheck": 0, "gpgcheck": 0,
"plugins": 0, "plugins": 0,
"reposdir": "", "reposdir": "",