From fe8b5416204c0dd5957497d3d16bffd9dba7cdee Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Sat, 4 Oct 2008 20:57:22 -1000 Subject: [PATCH] Make sure the yum.conf file goes to the lorax temp directory. --- src/pylorax/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py index 889d6601..2004e2ea 100644 --- a/src/pylorax/__init__.py +++ b/src/pylorax/__init__.py @@ -113,7 +113,7 @@ def writeYumConf(cachedir=None, repo=None, extrarepos=[], mirrorlist=[]): if cachedir is None or repo is None: return None - tmpdir = tempfile.gettempdir() + tmpdir = conf['tmpdir'] (fd, yumconf) = tempfile.mkstemp(prefix='yum.conf', dir=tmpdir) f = os.fdopen(fd, 'w')