[Fedora-livecd-list] [PATCH] Fix, --tmpdir relative path

David Huff dhuff at redhat.com
Mon Dec 15 21:49:23 UTC 2008


If a relative path is passed as --tmpdir it sets the build and inst root to
"relative path" which then gets passes to yum as the install root and causes
oddities with dependency resolution
---
 imgcreate/creator.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/imgcreate/creator.py b/imgcreate/creator.py
index 5c7f13d..82db284 100644
--- a/imgcreate/creator.py
+++ b/imgcreate/creator.py
@@ -382,7 +382,7 @@ class ImageCreator(object):
             return
 
         try:
-            self.__builddir = tempfile.mkdtemp(dir = self.tmpdir,
+            self.__builddir = tempfile.mkdtemp(dir =  os.path.abspath(self.tmpdir),
                                                prefix = "imgcreate-")
         except OSError, (err, msg):
             raise CreatorError("Failed create build directory in %s: %s" %
-- 
1.5.5.1




More information about the Fedora-livecd-list mailing list